Ignore enter/leave events when unmanaging a window (FS#1239)

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2014-03-28 13:15:24 +01:00
parent 8bddba170b
commit 163fc18ab8
1 changed files with 4 additions and 0 deletions

View File

@ -1176,7 +1176,11 @@ client_unmanage(client_t *c, bool window_valid)
xcb_reparent_window(globalconf.connection, c->window, globalconf.screen->root, xcb_reparent_window(globalconf.connection, c->window, globalconf.screen->root,
c->geometry.x, c->geometry.y); c->geometry.x, c->geometry.y);
} }
/* Ignore all spurious enter/leave notify events */
client_ignore_enterleave_events();
xcb_destroy_window(globalconf.connection, c->frame_window); xcb_destroy_window(globalconf.connection, c->frame_window);
client_restore_enterleave_events();
if(window_valid) if(window_valid)
{ {