Xext: Update sprite on fake input only for MDs and floating SDs.
This commit is contained in:
parent
3b93631e59
commit
8209fdbc7c
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…
Reference in New Issue
Block a user