From 163fc18ab844385fe021d88599005490958b8397 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 28 Mar 2014 13:15:24 +0100 Subject: [PATCH] Ignore enter/leave events when unmanaging a window (FS#1239) 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 6f220fe6f..6cf40e135 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1176,7 +1176,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) {