From 214d5efdd450b97c61cf0c8ee956bd4abea6d70c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 18 Dec 2009 18:43:32 -0500 Subject: [PATCH] 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. --- gdk/x11/gdkproperty-x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c index b0ce21b35f..1cf54f97e9 100644 --- a/gdk/x11/gdkproperty-x11.c +++ b/gdk/x11/gdkproperty-x11.c @@ -701,8 +701,9 @@ gdk_property_change (GdkWindow *window, if (GDK_WINDOW_DESTROYED (window)) return; + 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);