mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-10 02:20:16 +01:00
Xext: Update sprite on fake input only for MDs and floating SDs.
This commit is contained in:
parent
3b93631e59
commit
8209fdbc7c
1 changed files with 8 additions and 4 deletions
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue