Grab XCB_GRAB_SYNC and replay the event so it doesn’t get lost

This commit is contained in:
Michael Stapelberg
2009-02-25 19:11:49 +01:00
parent c859174965
commit 1335e4a4c9
2 changed files with 5 additions and 1 deletions

View File

@ -200,7 +200,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
/* We need to grab the mouse buttons for click to focus */
xcb_grab_button(conn, false, child, XCB_EVENT_MASK_BUTTON_PRESS,
XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC, root, XCB_NONE,
XCB_GRAB_MODE_SYNC, XCB_GRAB_MODE_ASYNC, root, XCB_NONE,
1 /* left mouse button */,
XCB_BUTTON_MASK_ANY /* dont filter for any modifiers */);