summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-30 11:34:35 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-30 11:34:35 -0400
commite244cb03f7491b80183e138b41839baa96ca5f56 (patch)
tree5c51f0cb37307286b2e70cc2a3503677f93d8f6e /src
parent029539bf27827f03a35fc5b2cee923c3564935d9 (diff)
xwm: Don't try to read deleted properties
Diffstat (limited to 'src')
-rw-r--r--src/xwayland/window-manager.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c
index de17c4e..ddb3019 100644
--- a/src/xwayland/window-manager.c
+++ b/src/xwayland/window-manager.c
@@ -646,8 +646,11 @@ weston_wm_handle_property_notify(struct weston_wm *wm, xcb_generic_event_t *even
fprintf(stderr, "XCB_PROPERTY_NOTIFY: window %d, ",
property_notify->window);
- read_and_dump_property(wm, property_notify->window,
- property_notify->atom);
+ if (property_notify->state == XCB_PROPERTY_DELETE)
+ fprintf(stderr, "deleted\n");
+ else
+ read_and_dump_property(wm, property_notify->window,
+ property_notify->atom);
if (property_notify->atom == wm->atom.net_wm_name ||
property_notify->atom == XCB_ATOM_WM_NAME)