diff --git a/dix/events.c b/dix/events.c index 19a9e1d38..6f05272e4 100644 --- a/dix/events.c +++ b/dix/events.c @@ -2069,6 +2069,7 @@ DeliverEventsToWindow(DeviceIntPtr pDev, WindowPtr pWin, xEvent tempGrab.pointerMode = GrabModeAsync; tempGrab.confineTo = NullWindow; tempGrab.cursor = NullCursor; + tempGrab.type = type; if (type == ButtonPress) tempGrab.grabtype = GRABTYPE_CORE; else if (type == DeviceButtonPress)