Make drops on the root window work again. (#145243, Andrew S. Dixon)

2006-02-02  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
	Make drops on the root window work again.  (#145243, Andrew S. Dixon)
This commit is contained in:
Matthias Clasen
2006-02-02 20:55:17 +00:00
committed by Matthias Clasen
parent 6eda42cf2c
commit 3f9ea3ca8d
3 changed files with 19 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2006-02-02 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
Make drops on the root window work again. (#145243, Andrew S. Dixon)
2006-01-31 Matthias Clasen <mclasen@redhat.com>
* autogen.sh: Touch README and INSTALL here to pacify

View File

@@ -1,3 +1,8 @@
2006-02-02 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
Make drops on the root window work again. (#145243, Andrew S. Dixon)
2006-01-31 Matthias Clasen <mclasen@redhat.com>
* autogen.sh: Touch README and INSTALL here to pacify

View File

@@ -3035,8 +3035,14 @@ _gdk_drag_get_protocol_for_display (GdkDisplay *display,
GDK_NOTE (DND, g_message ("Entering local Xdnd window %#x\n", xid));
return xid;
}
else
return None;
else if (_gdk_x11_display_is_root_window (display, (Window) xid))
{
*protocol = GDK_DRAG_PROTO_ROOTWIN;
GDK_NOTE (DND, g_message ("Entering root window\n"));
return xid;
}
return None;
}
if ((retval = xdnd_check_dest (display, xid, version)))
@@ -3104,6 +3110,7 @@ _gdk_drag_get_protocol_for_display (GdkDisplay *display,
if (rootwin)
{
*protocol = GDK_DRAG_PROTO_ROOTWIN;
GDK_NOTE (DND, g_message ("Entering root window\n"));
return xid;
}
}