Commit 56a6c40
committed
[GTK4] Skip drawing of fixedHandle
The fixedHandle does not have any drawable components, and as written
today, what gtk4_draw does on fixedHandle is draw the whole Widget,
then Display.snapshotDrawProc iterates through all the children, of
which the normal handle will be one (at least in StyledText case)
and gtk4_draw will be called again on the same widget.
This fixes caret drawing, because on the first time through gtk4_draw
the caret is drawn, but then on the second time the gtk4_draw draws
over the freshly drawn caret.
This is option 1 in #2812 (comment)
Fixes #28121 parent a0d6ffc commit 56a6c40
File tree
1 file changed
+10
-0
lines changed- bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3834 | 3834 | | |
3835 | 3835 | | |
3836 | 3836 | | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
3837 | 3845 | | |
| 3846 | + | |
| 3847 | + | |
3838 | 3848 | | |
3839 | 3849 | | |
3840 | 3850 | | |
| |||
0 commit comments