diff options
author | raveit65 <[email protected]> | 2018-03-09 16:14:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-19 09:39:06 +0100 |
commit | 4bb14f5ff09c47f37a17b8b128c691878b8b1c4c (patch) | |
tree | 507991a3c87af16ea5d8ea79ce7a7eafe6e41eb2 /help/reference/libdocument/libatrildocument.types | |
parent | 1f6278d8158b56707b412281d46e1ec06fe1a4fc (diff) | |
download | atril-4bb14f5ff09c47f37a17b8b128c691878b8b1c4c.tar.bz2 atril-4bb14f5ff09c47f37a17b8b128c691878b8b1c4c.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 'help/reference/libdocument/libatrildocument.types')
0 files changed, 0 insertions, 0 deletions