summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-11 13:32:09 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-12 11:44:20 +1000
commitda74983b7d18ad06fe828040072d4a985ce4d448 (patch)
treec8701f6efb3c93ab696fa19d317cf03dde02d91e
parentc9ebfba4a128f0d0eda920a02af013b795adfec5 (diff)
Add buttons + modifier/group information to enter/leave events.
-rw-r--r--XI2proto.h4
-rw-r--r--XI2proto.txt12
2 files changed, 15 insertions, 1 deletions
diff --git a/XI2proto.h b/XI2proto.h
index e34d3c8..394f49b 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -617,7 +617,9 @@ typedef struct
FP1616 event_y;
BOOL same_screen;
BOOL focus;
- uint16_t pad0;
+ uint16_t buttons_len;
+ xXIModifierInfo mods;
+ xXIGroupInfo group;
} xXIEnterEvent;
typedef xXIEnterEvent xXILeaveEvent;
diff --git a/XI2proto.txt b/XI2proto.txt
index b99d14e..d1daeaf 100644
--- a/XI2proto.txt
+++ b/XI2proto.txt
@@ -849,6 +849,10 @@ EVENTHEADER { type: BYTE
detail: NOTIFYDETAIL
same_screen: BOOL
focus: BOOL
+ mods: MODIFIERINFO
+ group: GROUPINFO
+ buttons_len: CARD16
+ buttons: SETofBUTTONMASK
└───
NOTIFYMODE { Normal, Grab, Ungrab }
@@ -886,5 +890,13 @@ EVENTHEADER { type: BYTE
focus
If the event window is the focus window or an inferior of the focus
window, then focus is True. Otherwise, focus is False.
+ mods
+ XKB modifier state before the event occured.
+ group
+ XKB group state before the event.
+ buttons_len
+ The length of 'buttons' in 4 byte units.
+ buttons
+ Button state before the event.
❧❧❧❧❧❧❧❧❧❧❧