]> git.sur5r.net Git - i3/i3/commitdiff
x: fix race condition where the new event mask was not set directly after reparenting
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 29 May 2011 10:32:01 +0000 (12:32 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 29 May 2011 11:20:41 +0000 (13:20 +0200)
src/manage.c

index 15c1cdbcdf3888d12bd7779d241b3157f9997d2c..fa948bec4540b332b852f542aeaba7556f2e4c5b 100644 (file)
@@ -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))