This function grabs the keyboard on the given device (defaulting to the selected one). So long as the keyboard is grabbed, all keyboard events will be delivered to SXEmacs—it is not possible for other X clients to eavesdrop on them. Ungrab the keyboard with
x-ungrab-keyboard(use anunwind-protect). Returnstif the grab was successful;nilotherwise.
This function releases a keyboard grab made with
x-grab-keyboard.
This function grabs the pointer and restricts it to its current window. If optional device argument is
nil, the selected device will be used. If optional cursor argument is non-nil, change the pointer shape to that untilx-ungrab-pointeris called (it should be an object returned by themake-cursorfunction). If the second optional argument ignore-keyboard is non-nil, ignore all keyboard events during the grab. Returnstif the grab is successful,nilotherwise.