dix: don't unconditionally update valuators during key events.
Master may not have valuators, device may not have valuators.
This commit is contained in:
parent
23365d2865
commit
70b4087c4d
|
@ -485,8 +485,11 @@ GetKeyboardValuatorEvents(EventList *events, DeviceIntPtr pDev, int type,
|
|||
{
|
||||
CreateClassesChangedEvent(events, master, pDev);
|
||||
|
||||
pDev->valuator->lastx = master->valuator->lastx;
|
||||
pDev->valuator->lasty = master->valuator->lasty;
|
||||
if (master->valuator && pDev->valuator)
|
||||
{
|
||||
pDev->valuator->lastx = master->valuator->lastx;
|
||||
pDev->valuator->lasty = master->valuator->lasty;
|
||||
}
|
||||
master->u.lastSlave = pDev;
|
||||
numEvents++;
|
||||
events++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user