summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-31 12:23:05 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-09-28 18:12:16 +0530
commit05d0c222631c4573978010636b08112190a63b4e (patch)
tree2a4e33c46871dd7f972e0d1a9f87e94618ec4b39 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parentb10455c7784bbac9ddf3050dabceefccfa2b645e (diff)
downloadeclipse.platform.swt-05d0c222631c4573978010636b08112190a63b4e.tar.gz
eclipse.platform.swt-05d0c222631c4573978010636b08112190a63b4e.tar.xz
eclipse.platform.swt-05d0c222631c4573978010636b08112190a63b4e.zip
Bug 388528 Use gdk_device_ungrab () instead of gdk_keyboard_ungrab () for GTK+3
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
index cce536a2f0..e403b01948 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
@@ -319,11 +319,13 @@ void dragEnd(long /*int*/ widget, long /*int*/ context){
long /*int*/ display = OS.gdk_window_get_display(OS.gtk_widget_get_window(widget));
long /*int*/ device_manager = OS.gdk_display_get_device_manager(display);
long /*int*/ pointer = OS.gdk_device_manager_get_client_pointer(device_manager);
+ long /*int*/ keyboard = OS.gdk_device_get_associated_device (pointer);
OS.gdk_device_ungrab(pointer, OS.GDK_CURRENT_TIME);
+ OS.gdk_device_ungrab(keyboard, OS.GDK_CURRENT_TIME);
} else {
OS.gdk_pointer_ungrab(OS.GDK_CURRENT_TIME);
+ OS.gdk_keyboard_ungrab(OS.GDK_CURRENT_TIME);
}
- OS.gdk_keyboard_ungrab(OS.GDK_CURRENT_TIME);
int operation = DND.DROP_NONE;
if (context != 0) {