summaryrefslogtreecommitdiff
path: root/dix/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'dix/events.c')
-rw-r--r--dix/events.c3
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);