xcb_grab_keyboard

@brief Grab the keyboard

@param c The connection @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not reported to the \a grab_window. @param grab_window Specifies the window on which the pointer should be grabbed. @param time Timestamp to avoid race conditions when running X over the network. \n The special value XCB_CURRENT_TIME will be replaced with the current server time. @param pointer_mode A bitmask of #xcb_grab_mode_t values. @param pointer_mode \n @param keyboard_mode A bitmask of #xcb_grab_mode_t values. @param keyboard_mode \n @return A cookie

Actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbing client.

Any active keyboard grab by this client is overridden. If the keyboard is actively grabbed by some other client, AlreadyGrabbed is returned. If \a grab_window is not viewable, GrabNotViewable is returned. If the keyboard is frozen by an active grab of another client, GrabFrozen is returned. If the specified \a time is earlier than the last-keyboard-grab time or later than the current X server time, GrabInvalidTime is returned. Otherwise, the last-keyboard-grab time is set to the specified time.

Meta