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:51:49 +00:00 committed by Matthias Clasen
parent 32690cf693
commit afab67f99a
3 changed files with 18 additions and 1 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-02-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init): Wrap dnd signal

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-02-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init): Wrap dnd signal

View File

@ -3035,7 +3035,13 @@ _gdk_drag_get_protocol_for_display (GdkDisplay *display,
GDK_NOTE (DND, g_message ("Entering local Xdnd window %#x\n", xid));
return xid;
}
else
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;
}
@ -3103,6 +3109,7 @@ _gdk_drag_get_protocol_for_display (GdkDisplay *display,
if (rootwin)
{
GDK_NOTE (DND, g_message ("Entering root window\n"));
*protocol = GDK_DRAG_PROTO_ROOTWIN;
return xid;
}