[gtk+/xi2] Set default device on dest side for DnD.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2] Set default device on dest side for DnD.
- Date: Sat, 6 Feb 2010 11:56:49 +0000 (UTC)
commit a333fe952ecbef22a1c8c052225916865296e044
Author: Carlos Garnacho <carlos gnome org>
Date: Sat Feb 6 12:54:12 2010 +0100
Set default device on dest side for DnD.
There are no means in the XDnD protocol yet to tell the
dest window which device has initiated the DnD operation,
assign it to the default core pointer.
gdk/x11/gdkdnd-x11.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index 97168d4..d5bb321 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -2771,6 +2771,9 @@ xdnd_enter_filter (GdkXEvent *xev,
new_context->protocol = GDK_DRAG_PROTO_XDND;
PRIVATE_DATA(new_context)->version = version;
+ /* FIXME: Should extend DnD protocol to have device info */
+ gdk_drag_context_set_device (new_context, gdk_display_get_core_pointer (display));
+
new_context->source_window = gdk_window_lookup_for_display (display, source_window);
if (new_context->source_window)
g_object_ref (new_context->source_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]