summaryrefslogtreecommitdiff
path: root/libdocument/ev-selection.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-03-09 16:14:26 +0100
committerraveit65 <[email protected]>2018-03-19 09:42:45 +0100
commit6217a89c6fad8ab77d3776210df5f6a182928f0e (patch)
treecdccc7d8cde3fd959c03b9a451fb1dc29a6ca308 /libdocument/ev-selection.c
parent56e08ae002162bd83ebdc4dc70713b226334d8be (diff)
downloadatril-6217a89c6fad8ab77d3776210df5f6a182928f0e.tar.bz2
atril-6217a89c6fad8ab77d3776210df5f6a182928f0e.tar.xz
Save/restore context when getting colors for a different state
Getting colors for a state different from the current state of the corresponding widget without saving the context might trigger an invalidation and a redraw. Because this was happening from the draw function this resulted in a redraw loop and constant high CPU usage. This could be triggered by selecting text or searching. https://bugzilla.gnome.org/show_bug.cgi?id=755442 inspired by: https://git.gnome.org/browse/evince/commit/?id=1987f04 https://github.com/linuxmint/xreader/commit/e76a18d
Diffstat (limited to 'libdocument/ev-selection.c')
0 files changed, 0 insertions, 0 deletions