Commit 4bb14f5
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
linuxmint/xreader@e76a18d1 parent 1f6278d commit 4bb14f5
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3974 | 3974 | | |
3975 | 3975 | | |
3976 | 3976 | | |
| 3977 | + | |
3977 | 3978 | | |
| 3979 | + | |
3978 | 3980 | | |
3979 | 3981 | | |
3980 | 3982 | | |
| |||
5622 | 5624 | | |
5623 | 5625 | | |
5624 | 5626 | | |
| 5627 | + | |
5625 | 5628 | | |
| 5629 | + | |
5626 | 5630 | | |
5627 | 5631 | | |
5628 | 5632 | | |
| |||
5811 | 5815 | | |
5812 | 5816 | | |
5813 | 5817 | | |
| 5818 | + | |
5814 | 5819 | | |
5815 | 5820 | | |
5816 | 5821 | | |
5817 | 5822 | | |
5818 | 5823 | | |
5819 | 5824 | | |
| 5825 | + | |
| 5826 | + | |
5820 | 5827 | | |
5821 | 5828 | | |
5822 | 5829 | | |
| |||
0 commit comments