Commit 8e142788 authored by Cody Russell's avatar Cody Russell
Browse files

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.
parent 5c283cac
......@@ -3926,6 +3926,9 @@ gdk_window_register_dnd (GdkWindow *window)
g_return_if_fail (window != NULL);
if (gdk_window_get_window_type (window) == GDK_WINDOW_OFFSCREEN)
base_precache_atoms (display);
if (g_object_get_data (G_OBJECT (window), "gdk-dnd-registered") != NULL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment