Ignore enter/leave events when unmanaging a window (FS#1239)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
8bddba170b
commit
163fc18ab8
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue