mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: update CheckMotion to deal with DeviceEvents.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -930,14 +930,15 @@ ProcessOtherEvent(xEventPtr ev, DeviceIntPtr device, int count)
|
||||
if (ret == DONT_PROCESS)
|
||||
return;
|
||||
|
||||
nevents = ConvertBackToXI((InternalEvent*)ev, xE);
|
||||
|
||||
v = device->valuator;
|
||||
b = device->button;
|
||||
k = device->key;
|
||||
|
||||
if (device->isMaster || !device->u.master)
|
||||
CheckMotion(xE, device);
|
||||
CheckMotion(event, device);
|
||||
|
||||
nevents = ConvertBackToXI((InternalEvent*)ev, xE);
|
||||
|
||||
if (xE->u.u.type != DeviceValuator && xE->u.u.type != GenericEvent) {
|
||||
GetSpritePosition(device, &rootX, &rootY);
|
||||
|
||||
Reference in New Issue
Block a user