From 18ec15b0f9caab845ea40de5e9e23293499e1533 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 29 May 2011 12:32:01 +0200 Subject: [PATCH] x: fix race condition where the new event mask was not set directly after reparenting --- src/manage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/manage.c b/src/manage.c index 15c1cdbc..fa948bec 100644 --- a/src/manage.c +++ b/src/manage.c @@ -322,6 +322,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki mask = XCB_CW_EVENT_MASK; values[0] = CHILD_EVENT_MASK; xcb_change_window_attributes(conn, window, mask, values); + xcb_flush(conn); reply = xcb_get_property_reply(conn, state_cookie, NULL); if (xcb_reply_contains_atom(reply, A__NET_WM_STATE_FULLSCREEN)) -- 2.39.5