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>
This commit is contained in:
parent
bb1c131b78
commit
7348bf4935
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user