grab synchronously and conditionally xcb_allow_events (for acceptable keys) Notice that in case the locker does not yet grab synchronously, you may screw input processing and may have to kill/disconnect the locker (and then fix the dead lock condition) during development. Cheers, Thomas