XUngrabKeyboard() XUngrabKeyboard()
Name
XUngrabKeyboard - release the keyboard from an active grab.
Synopsis
XUngrabKeyboard(display, time)
Display *display;
Time time;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
time Specifies the time. Pass either a timestamp, expressed in milliseconds, or the constant CurrentTime. If this time is earlier
than the last-keyboard-grab time or later than the current server time, the keyboard will not be ungrabbed.
Description
XUngrabKeyboard() releases any active grab on the keyboard by this client. It executes as follows:
o Releases the keyboard and any queued events if this client has it actively grabbed from either XGrabKeyboard() or XGrabKey().
o Does not release the keyboard and any queued events if time is earlier than the last-keyboard-grab time or is later than the current X
server time.
o Generates FocusIn and FocusOut events.
The X server automatically performs an UngrabKeyboard if the grab_window (argument to XGrabKey() and XGrabKeyboard()) becomes unviewable.
For more information, see Volume One, Chapter 9, The Keyboard and Pointer.
See Also
XChangeActivePointerGrab(), XGrabButton(), XGrabKey(), XGrabKeyboard(), XGrabPointer(), XGrabServer(), XUngrabButton(), XUngrabKey(), XUn-
grabPointer(), XUngrabServer().
Xlib - Grabbing XUngrabKeyboard()