XGetInputFocus() XGetInputFocus()
Name
XGetInputFocus - return the current keyboard focus window.
Synopsis
XGetInputFocus(display, focus_return, revert_to_return)
Display *display;
Window *focus_return;
int *revert_to_return;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
focus_return
Returns the ID of the focus window, or one of the constants PointerRoot or None.
revert_to_return
Returns the window to which the focus would revert if the focus window became invisible. This is one of these constants:
RevertToParent, RevertToPointerRoot, or RevertToNone. Must not be a window ID.
Description
XGetInputFocus() returns the current keyboard focus window and the window to which the focus would revert if the focus window became invis-
ible.
XGetInputFocus() does not report the last focus change time. This is available only from FocusIn and FocusOut events.
See Also
XQLength(), XAllowEvents(), XCheckIfEvent(), XCheckMaskEvent(), XCheckTypedEvent(), XCheckTypedWindowEvent(), XCheckWindowEvent(),
XEventsQueued(), XGetMotionEvents(), XIfEvent(), XMaskEvent(), XNextEvent(), XPeekEvent(), XPeekIfEvent(), XPending(), XPutBackEvent(),
XSelectInput(), XSendEvent(), XSetInputFocus(), XSynchronize(), XWindowEvent().
Xlib - Input Handling XGetInputFocus()