diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-07 09:25:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-07 09:31:08 +1000 |
commit | 7348bf4935c8887bca33fe340ac2548f551bee3d (patch) | |
tree | aa2529ded8e7d72c2e6688cd1fd1d09ed1a3d372 /dix/events.c | |
parent | bb1c131b785ca30cf40041db3513b7669beebd34 (diff) |
dix: set the generic event type for implicit XI2 grabs.
event->type is always GenericEvent for XI2 events. Instead, XI_ButtonPress
(the generic event's evtype must be stored.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/events.c')
-rw-r--r-- | dix/events.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/events.c b/dix/events.c index 538d6fd32..ffeb449b8 100644 --- a/dix/events.c +++ b/dix/events.c @@ -2093,7 +2093,10 @@ DeliverEventsToWindow(DeviceIntPtr pDev, WindowPtr pWin, xEvent else if (type == DeviceButtonPress) tempGrab.grabtype = GRABTYPE_XI; else + { + tempGrab.type = ((xGenericEvent*)pEvents)->evtype; tempGrab.grabtype = GRABTYPE_XI2; + } /* get the XI and XI2 device mask */ inputMasks = wOtherInputMasks(pWin); |