mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 03:54:30 +00:00
Xext: Update sprite on fake input only for MDs and floating SDs.
This commit is contained in:
12
Xext/xtest.c
12
Xext/xtest.c
@@ -440,10 +440,14 @@ ProcXTestFakeInput(client)
|
||||
ev->u.keyButtonPointer.rootY);
|
||||
return client->noClientException;
|
||||
}
|
||||
(*root->drawable.pScreen->SetCursorPosition)
|
||||
(dev, root->drawable.pScreen,
|
||||
ev->u.keyButtonPointer.rootX,
|
||||
ev->u.keyButtonPointer.rootY, FALSE);
|
||||
/* Only update sprite for MDs and floating SDs */
|
||||
if (dev->isMaster || (!dev->isMaster && !dev->u.master))
|
||||
{
|
||||
(*root->drawable.pScreen->SetCursorPosition)
|
||||
(dev, root->drawable.pScreen,
|
||||
ev->u.keyButtonPointer.rootX,
|
||||
ev->u.keyButtonPointer.rootY, FALSE);
|
||||
}
|
||||
dev->lastx = ev->u.keyButtonPointer.rootX;
|
||||
dev->lasty = ev->u.keyButtonPointer.rootY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user