diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-11 16:32:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-12 11:44:20 +1000 |
commit | 0ca1de737aa5cd714a4df3a45422dce415f9df55 (patch) | |
tree | d4ebdf6aea7dc89061e5b8e397f394dfce440aaf | |
parent | da74983b7d18ad06fe828040072d4a985ce4d448 (diff) |
Add focus events
-rw-r--r-- | XI2proto.h | 2 | ||||
-rw-r--r-- | XI2proto.txt | 21 |
2 files changed, 19 insertions, 4 deletions
@@ -623,5 +623,7 @@ typedef struct } xXIEnterEvent; typedef xXIEnterEvent xXILeaveEvent; +typedef xXIEnterEvent xXIFocusInEvent; +typedef xXIEnterEvent xXIFocusOutEvent; #endif /* _XI2PROTO_H_ */ diff --git a/XI2proto.txt b/XI2proto.txt index d1daeaf..e865d35 100644 --- a/XI2proto.txt +++ b/XI2proto.txt @@ -835,7 +835,7 @@ EVENTHEADER { type: BYTE Untransformed valuator data in device-native resolution. ┌─── - Enter or Leave + Enter or Leave or FocusIn or FocusOut EVENTHEADER root: Window event: Window @@ -861,8 +861,20 @@ EVENTHEADER { type: BYTE Enter or Leave events are sent whenever a device's pointer enters or leaves a window. - The enter/leave model is described in the core protocol specification, - Section 11. (EnterNotify, LeaveNotify events). + FocusIn or FocusOut events are sent whenever a device's focus is set to or + away from a window. + The enter/leave and focus in/out model is described in the core protocol + specification, Section 11. (EnterNotify, LeaveNotify events). + + For enter and leave events, the modifier and group state is the state of + the paired master device if the device is a master device, or the state of + the attached master keyboard if the device is an attached slave device, or + zero if the device is a floating slave device. + + For focus in and out events, the button state is the state of the paired + master device if the device is a master device, or the state of the + attached master keyboard if the device is an attached slave device, or + zero if the device is a floating slave device. root event @@ -889,7 +901,8 @@ EVENTHEADER { type: BYTE window. focus If the event window is the focus window or an inferior of the focus - window, then focus is True. Otherwise, focus is False. + window, then focus is True. Otherwise, focus is False. This field is + unspecified for focus in/out events. mods XKB modifier state before the event occured. group |