Ensure native windows in gdk_property_change

Using X properties on non-toplevel windows is somewhat exotic,
but some people seem to do it, so better to keep it working.
See bug 604787.
This commit is contained in:
Matthias Clasen 2009-12-18 18:43:32 -05:00 committed by Tristan Van Berkom
parent 600ae2db92
commit 214d5efdd4

View File

@ -701,8 +701,9 @@ gdk_property_change (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
display = gdk_drawable_get_display (window);
gdk_window_ensure_native (window);
display = gdk_drawable_get_display (window);
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
xwindow = GDK_WINDOW_XID (window);