mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
xkb: enable XI event processing for xkb.
XI events can now take the same processing paths as core events, and should do
the correct state changes etc.
There's some cases where XKB will use KeyPress as type for an event to be
delivered to the client. Stuck warnings in, not sure what the correct solution
is yet.
(cherry picked from commit 6334d4e7be with some
additional compile fixes and non-MPX adaptations)
This commit is contained in:
parent
91077bfc50
commit
99e826e867
4 changed files with 103 additions and 44 deletions
|
|
@ -314,8 +314,9 @@ extern CARD32 xkbDebugFlags;
|
|||
#define _XkbErrCode3(a,b,c) _XkbErrCode2(a,(((unsigned int)(b))<<16)|(c))
|
||||
#define _XkbErrCode4(a,b,c,d) _XkbErrCode3(a,b,((((unsigned int)(c))<<8)|(d)))
|
||||
|
||||
extern int DeviceKeyPress,DeviceKeyRelease;
|
||||
extern int DeviceKeyPress,DeviceKeyRelease,DeviceMotionNotify;
|
||||
extern int DeviceButtonPress,DeviceButtonRelease;
|
||||
extern int DeviceEnterNotify,DeviceLeaveNotify;
|
||||
|
||||
#ifdef XINPUT
|
||||
#define _XkbIsPressEvent(t) (((t)==KeyPress)||((t)==DeviceKeyPress))
|
||||
|
|
|
|||
Loading…
Reference in a new issue