We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fd3fd6 commit 84e6db7Copy full SHA for 84e6db7
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java
@@ -546,4 +546,14 @@ void updateCaret () {
546
GTK.gtk_im_context_set_cursor_location (imHandle, rect);
547
}
548
549
+@Override
550
+void snapshotToDraw(long handle, long snapshot) {
551
+ // Skip drawing if this is being called on fixedHandle to prevent double draws
552
+ // making carret not visible at all
553
+ if (fixedHandle != 0 && handle == fixedHandle) {
554
+ return;
555
+ }
556
+ super.snapshotToDraw(handle, snapshot);
557
+}
558
+
559
0 commit comments