XUngrabKeyboard()XUngrabKeyboard()NameXUngrabKeyboard – 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.
DescriptionXUngrabKeyboard() releases any active grab on the keyboard by this
client. It executes as follows:
· Releases the keyboard and any queued events if this client has it
actively grabbed from either XGrabKeyboard() or XGrabKey().
· Does not release the keyboard and any queued events if time is ear‐
lier than the last-keyboard-grab time or is later than the current X
server time.
· Generates FocusIn and FocusOut events.
The X server automatically performs an UngrabKeyboard if the grab_win‐
dow (argument to XGrabKey() and XGrabKeyboard()) becomes unviewable.
For more information, see Volume One, Chapter 9, The Keyboard and
Pointer.
See AlsoXChangeActivePointerGrab(), XGrabButton(), XGrabKey(), XGrabKeyboard(),
XGrabPointer(), XGrabServer(), XUngrabButton(), XUngrabKey(), XUngrab‐
Pointer(), XUngrabServer().
Xlib - Grabbing XUngrabKeyboard()