[gtk+/xi2-playground: 12/15] GtkDnD: Use client pointer if no event is available.



commit d7a8e5fd74dae391bf607acef8bfb669a620edb9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jun 8 15:27:40 2010 +0200

    GtkDnD: Use client pointer if no event is available.

 gtk/gtkdnd.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index a640985..a0d878d 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -2375,7 +2375,10 @@ gtk_drag_begin_internal (GtkWidget         *widget,
     }
   else
     {
-      pointer = gdk_display_get_core_pointer (gtk_widget_get_display (widget));
+      GdkDeviceManager *device_manager;
+
+      device_manager = gdk_display_get_device_manager (gtk_widget_get_display (widget));
+      pointer = gdk_device_manager_get_client_pointer (device_manager);
       keyboard = gdk_device_get_associated_device (pointer);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]