From: Kristian Høgsberg Date: Wed, 30 May 2012 15:34:35 +0000 (-0400) Subject: xwm: Don't try to read deleted properties X-Git-Tag: 20120702.1049~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e244cb03f7491b80183e138b41839baa96ca5f56;p=profile%2Fivi%2Fweston.git xwm: Don't try to read deleted properties --- 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)