dix: don't compress motion events from different devices (EventEnqueue)
(cherry picked from commit 8840829ab9
)
This commit is contained in:
parent
8d3d027062
commit
352c5a3112
|
@ -1098,9 +1098,10 @@ EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
|
||||||
#endif
|
#endif
|
||||||
sprite.hotPhys.x = XE_KBPTR.rootX;
|
sprite.hotPhys.x = XE_KBPTR.rootX;
|
||||||
sprite.hotPhys.y = XE_KBPTR.rootY;
|
sprite.hotPhys.y = XE_KBPTR.rootY;
|
||||||
/* do motion compression */
|
/* do motion compression, but not if from different devices */
|
||||||
if (tail &&
|
if (tail &&
|
||||||
(tail->event->u.u.type == MotionNotify) &&
|
(tail->event->u.u.type == MotionNotify) &&
|
||||||
|
(tail->device == device) &&
|
||||||
(tail->pScreen == sprite.hotPhys.pScreen))
|
(tail->pScreen == sprite.hotPhys.pScreen))
|
||||||
{
|
{
|
||||||
tail->event->u.keyButtonPointer.rootX = sprite.hotPhys.x;
|
tail->event->u.keyButtonPointer.rootX = sprite.hotPhys.x;
|
||||||
|
|
Loading…
Reference in New Issue