10.7.2 Focus Events Generated by Grabs
Focus events in which the keyboard grab activates
are identified by
XFocusInEvent
or
XFocusOutEvent
structures whose
mode member is set to
NotifyGrab.
Focus events in which the keyboard grab deactivates
are identified by
XFocusInEvent
or
XFocusOutEvent
structures whose
mode member is set to
NotifyUngrab
(see
XGrabKeyboard()).
-
When a keyboard grab activates before generating any actual
KeyPress
event that activates the grab,
G is the grab_window, and F is the current focus,
the X server does the following:
-
When a keyboard grab deactivates after generating any actual
KeyRelease
event that deactivates the grab,
G is the grab_window, and F is the current focus,
the X server does the following:
Christophe Tronche, [email protected]