From 9fcf6a0a0d3480707f30c2325e4145ea4c7e035d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 11 Aug 2010 11:57:44 +0200 Subject: [PATCH] Unselect events on our frame window in unmanage This makes sure that we don't get any events from the activity of client_unmanage() after this point. Signed-off-by: Uli Schlachter --- objects/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objects/client.c b/objects/client.c index 20dfe6a9..6709095c 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1073,6 +1073,10 @@ client_unmanage(client_t *c) c->window, XCB_CW_EVENT_MASK, (const uint32_t []) { 0 }); + xcb_change_window_attributes(globalconf.connection, + c->frame_window, + XCB_CW_EVENT_MASK, + (const uint32_t []) { 0 }); xcb_screen_t *s = xutil_screen_get(globalconf.connection, c->phys_screen); xcb_unmap_window(globalconf.connection, c->window);