Node: Grab Functions, Next: Display Functions, Previous: Pointer Functions, Up: Miscellaneous Functions
| grab-server | Function |
| Prevent any other clients from accessing the X server. |
| ungrab-server | Function |
After a call to grab-server this will allow other clients to
access the X server again.
Note that calls to |
| with-server-grabbed &rest forms | Macro |
| Evaluate forms with the server grabbed. Releases the grab afterwards. |
| call-with-server-ungrabbed thunk | Function |
| Return the result of calling the zero-parameter function thunk. If the server is currently grabbed, ungrab it first, restoring the original grab status after the call to thunk returns. |
| server-grabbed-p | Function |
Returns t if the X server is currently grabbed.
|
| grab-pointer &optional window cursor ptr-sync kbd-sync confine-to | Function |
|
Grab the mouse pointer and direct all pointer events to window object
window. If cursor is defined and a cursor object, display
this while the pointer is grabbed.
If window is a window object corresponding to a visible window, the grab will be made on its frame. If window is an integer, it specifies the window ID of the grab window. Otherwise the grab will be made on the root window. This includes window corresponding to a non-viewable window. Confine-to, if non- If the window id of a non-viewable window was specified for either window of confine-to, the grab will be made on the root window without confining the pointer. If ptr-sync or kbd-sync is non-nil, the pointer or
keyboard will be frozen, i.e., the device will not produce events
until either the grab is released or events are re-enabled using
Returns non-nil if the grab succeeded. |
| ungrab-pointer | Function |
| Release the grab on the mouse pointer. |
| grab-keyboard &optional window ptr-sync kbd-sync | Function |
|
Grab the keyboard and direct all keyboard events to window object
window.
If window is a window object corresponding to a visible window, the grab will be made on its frame. If window is an integer, it specifies the window ID of the grab window. Otherwise the grab will be made on the root window. This includes window corresponding to a non-viewable window. If ptr-sync or kbd-sync is non-nil, the pointer or
keyboard will be frozen, i.e., the device will not produce events
until either the grab is released or events are re-enabled using
Returns non-nil if the grab succeeded. |
| ungrab-keyboard | Function |
| Release the grab on the keyboard. |
| call-with-keyboard-grabbed thunk | Function |
| Call the zero-parameter function thunk with the keyboard grabbed. If unable to grab the keyboard then thunk won't be called. |