x: fix race condition where the new event mask was not set directly after reparenting

This commit is contained in:
Michael Stapelberg 2011-05-29 12:32:01 +02:00
parent 8acea3d34c
commit 18ec15b0f9
1 changed files with 1 additions and 0 deletions

View File

@ -322,6 +322,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
mask = XCB_CW_EVENT_MASK; mask = XCB_CW_EVENT_MASK;
values[0] = CHILD_EVENT_MASK; values[0] = CHILD_EVENT_MASK;
xcb_change_window_attributes(conn, window, mask, values); xcb_change_window_attributes(conn, window, mask, values);
xcb_flush(conn);
reply = xcb_get_property_reply(conn, state_cookie, NULL); reply = xcb_get_property_reply(conn, state_cookie, NULL);
if (xcb_reply_contains_atom(reply, A__NET_WM_STATE_FULLSCREEN)) if (xcb_reply_contains_atom(reply, A__NET_WM_STATE_FULLSCREEN))