mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: don't compress motion events from different devices (EventEnqueue)
(cherry picked from commit 8840829ab9)
This commit is contained in:
committed by
Daniel Stone
parent
8d3d027062
commit
352c5a3112
@@ -1098,9 +1098,10 @@ EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
|
||||
#endif
|
||||
sprite.hotPhys.x = XE_KBPTR.rootX;
|
||||
sprite.hotPhys.y = XE_KBPTR.rootY;
|
||||
/* do motion compression */
|
||||
/* do motion compression, but not if from different devices */
|
||||
if (tail &&
|
||||
(tail->event->u.u.type == MotionNotify) &&
|
||||
(tail->device == device) &&
|
||||
(tail->pScreen == sprite.hotPhys.pScreen))
|
||||
{
|
||||
tail->event->u.keyButtonPointer.rootX = sprite.hotPhys.x;
|
||||
|
||||
Reference in New Issue
Block a user