win32: dnd should not be registerd for offscreen windows

https://bugzilla.gnome.org/show_bug.cgi?id=616544
This commit is contained in:
Dieter Verfaillie 2011-09-27 21:53:48 +02:00 committed by Alexander Larsson
parent 05e982a11a
commit 86b8a1ddc8

View File

@ -2368,6 +2368,9 @@ _gdk_win32_window_register_dnd (GdkWindow *window)
g_return_if_fail (window != NULL);
if (gdk_window_get_window_type (window) == GDK_WINDOW_OFFSCREEN)
return;
if (g_object_get_data (G_OBJECT (window), "gdk-dnd-registered") != NULL)
return;
else