Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XGetInputFo(3x) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

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

displaySpecifies 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 invisible.  XGetInputFocus() does not report the last focus change time.  This is available only from FocusIn and FocusOut events. 

See Also

QLength(), XAllowEvents(), XCheckIfEvent(), XCheckMaskEvent(), XCheckTypedEvent(), XCheckTypedWindowEvent(), XCheckWindowEvent(), XEventsQueued(), XGetMotionEvents(), XIfEvent(), XMaskEvent(), XNextEvent(), XPeekEvent(), XPeekIfEvent(), XPending(), XPutBackEvent(), XSelectInput(), XSendEvent(), XSetInputFocus(), XSynchronize(), XWindowEvent. 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026