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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-08-11 11:57:44 +02:00
parent e59086f2bf
commit 9fcf6a0a0d
1 changed files with 4 additions and 0 deletions

View File

@ -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);