Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Xenos2016-05-12 19:49:47 +0000
committerArun Thondapu2016-05-16 20:35:08 +0000
commitfb4165e3ebbd49650992685a61503c7defde1eab (patch)
tree6697f29b05b9a08b7077edd4ce6ba6b2f2bb209d
parente909d86b04ed8538dc252fca6ea245b90c30abdc (diff)
downloadeclipse.platform.swt-fb4165e3ebbd49650992685a61503c7defde1eab.tar.gz
eclipse.platform.swt-fb4165e3ebbd49650992685a61503c7defde1eab.tar.xz
eclipse.platform.swt-fb4165e3ebbd49650992685a61503c7defde1eab.zip
Bug 493477 - On GTK2, Tracker(Shell, int) traps the cursor
Bug 406954 - Tracker gives GdkWarning Fix both bugs by passing null to the "capture" argument of gdk_pointer_grab. This was the cause of both the warning (in cases where it didn't work) and the unwanted behavior (in cases where it did). Change-Id: Ibee450f7f4dc9d35d7b8faa899a9b1b834043dd6 Signed-off-by: Stefan Xenos <sxenos@gmail.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
index aa84f02e99..729e80f3d4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
@@ -408,7 +408,7 @@ public boolean getStippled () {
boolean grab () {
long /*int*/ cursor = this.cursor != null ? this.cursor.handle : 0;
- int result = gdk_pointer_grab (window, OS.GDK_OWNERSHIP_NONE, false, OS.GDK_POINTER_MOTION_MASK | OS.GDK_BUTTON_RELEASE_MASK, window, cursor, OS.GDK_CURRENT_TIME);
+ int result = gdk_pointer_grab (window, OS.GDK_OWNERSHIP_NONE, false, OS.GDK_POINTER_MOTION_MASK | OS.GDK_BUTTON_RELEASE_MASK, 0, cursor, OS.GDK_CURRENT_TIME);
return result == OS.GDK_GRAB_SUCCESS;
}

Back to the top