summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkproperty-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/x11/gdkproperty-x11.c')
-rw-r--r--gdk/x11/gdkproperty-x11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c
index 7a8046e3a0..4fabb97f66 100644
--- a/gdk/x11/gdkproperty-x11.c
+++ b/gdk/x11/gdkproperty-x11.c
@@ -525,7 +525,11 @@ _gdk_x11_window_change_property (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
- gdk_window_ensure_native (window);
+ if (!gdk_window_has_native (window))
+ {
+ g_warning ("Can't change property on non-native window");
+ return;
+ }
display = gdk_window_get_display (window);
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);