Ignore enter/leave events when unmanaging a window (FS#1239)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
9c69e857ed
commit
f12ba8fec0
|
@ -1189,7 +1189,11 @@ client_unmanage(client_t *c, bool window_valid)
|
|||
xcb_reparent_window(globalconf.connection, c->window, globalconf.screen->root,
|
||||
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);
|
||||
client_restore_enterleave_events();
|
||||
|
||||
if(window_valid)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue