Next: Event Types, Previous: Grabbing the Keyboard, Up: Events and Input [Contents][Index]
The following paragraphs describe the functions used for passively grabbing and releasing the keyboard.
A window.
The key (type card8) to be grabbed or :any.
A modifier-mask.
If true, all client windows receive keyboard input normally.
Indicates whether the pointer is in synchronous or asynchronous mode.
Indicates whether the keyboard is in synchronous or asynchronous mode.
A timestamp.
This request establishes a passive grab on the keyboard. If the specified key (which can also be a modifier key) is pressed (whether or not any specified modifier keys are down), and either of the following is true:
The interpretation of the remaining arguments is as for grab-keyboard. The active grab is terminated automatically when the specified key has been released, independent of the state of the modifier keys.
A zero modifier mask is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all specified modifiers have currently assigned keycodes. A key of :any is equivalent to issuing the request for all possible keycodes. Otherwise, the key must be in the range specified by display-min-keycode and display-max-keycode in the connection setup.
A window.
The key (type card8) to be released or :any.
A modifier-mask.
Releases the key combination on the specified window if it was grabbed by this client. A zero modifier mask of :any is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). A key of :any is equivalent to issuing the request for all possible keycodes. ungrab-key has no effect on an active grab.
Next: Event Types, Previous: Grabbing the Keyboard, Up: Events and Input [Contents][Index]