forked from AuroraMiddleware/gtk
Bug 608218 - GtkOffscreenWindow causes bad window with GtkEntry
We now exit early from gdk_window_register_dnd() to avoid crashing if the window type is GDK_WINDOW_OFFSCREEN and does not support dnd operations. This makes it possible to use any dnd-enabled widgets, such as GtkEntry, within a GtkOffscreenWindow.
This commit is contained in:
parent
ae7cfc70c7
commit
6c0ff288b0
@ -3879,6 +3879,9 @@ gdk_window_register_dnd (GdkWindow *window)
|
||||
|
||||
g_return_if_fail (window != NULL);
|
||||
|
||||
if (gdk_window_get_window_type (window) == GDK_WINDOW_OFFSCREEN)
|
||||
return;
|
||||
|
||||
base_precache_atoms (display);
|
||||
|
||||
if (g_object_get_data (G_OBJECT (window), "gdk-dnd-registered") != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user