From fcf6c863cd3cf8b5b0f310d9e435d065052b146a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 25 Sep 2016 06:48:42 +0200 Subject: [PATCH] drawin_map: Ignore enter/leave after apply_moveresize drawin_apply_moveresize() calls client_ignore_enterleave_events() internally, because it also wants these to be ignored. This means that the code disables enter/leave events twice and then enables them twice. This recursive disabling is something that should not occur. Fix this by having drawin_map() disable the events a bit later. Signed-off-by: Uli Schlachter --- objects/drawin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/drawin.c b/objects/drawin.c index 09056b7f..377be629 100644 --- a/objects/drawin.c +++ b/objects/drawin.c @@ -297,10 +297,10 @@ static void drawin_map(lua_State *L, int widx) { drawin_t *drawin = luaA_checkudata(L, widx, &drawin_class); - /* Activate BMA */ - client_ignore_enterleave_events(); /* Apply any pending changes */ drawin_apply_moveresize(drawin); + /* Activate BMA */ + client_ignore_enterleave_events(); /* Map the drawin */ xcb_map_window(globalconf.connection, drawin->window); /* Deactivate BMA */