From: Michael Stapelberg Date: Sun, 29 May 2011 10:32:01 +0000 (+0200) Subject: x: fix race condition where the new event mask was not set directly after reparenting X-Git-Tag: tree-pr4~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18ec15b0f9caab845ea40de5e9e23293499e1533;p=i3%2Fi3 x: fix race condition where the new event mask was not set directly after reparenting --- 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))