[gtk+] GtkDnD: Use client pointer if no event is available.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkDnD: Use client pointer if no event is available.
- Date: Thu, 24 Jun 2010 00:31:30 +0000 (UTC)
commit 928e2a578014c36833561c6e77cf64ea478e43b8
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]