diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java | 4 |
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) { |