Commit e76a18d
Fixes "Having selected text leads to high cpu load" (#140)
Fixes #70
This patch is based on:
https://git.gnome.org/browse/evince/commit/?id=1987f04ea36329b1bd61d053a19d9e341e0454ce
author Sebastian Keller <sebastian-keller@gmx.de> 2015-09-22 21:25:34 (GMT)
libview: 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=7554421 parent a185d0a commit e76a18d
File tree
3 files changed
+8
-0
lines changed- libdocument
- libview
3 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
637 | 639 | | |
638 | 640 | | |
| |||
644 | 646 | | |
645 | 647 | | |
646 | 648 | | |
| 649 | + | |
| 650 | + | |
647 | 651 | | |
648 | 652 | | |
649 | 653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4284 | 4284 | | |
4285 | 4285 | | |
4286 | 4286 | | |
| 4287 | + | |
4287 | 4288 | | |
| 4289 | + | |
4288 | 4290 | | |
4289 | 4291 | | |
4290 | 4292 | | |
| |||
0 commit comments