summaryrefslogtreecommitdiff
path: root/Xext/xtest.c
diff options
context:
space:
mode:
authorPaulo Ricardo Zanoni <prz05@c3sl.ufpr.br>2007-04-26 15:58:50 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-04-26 15:58:50 +0930
commit82f97e1c0cc15b050edc82a8f3b9a423d6cf5fe7 (patch)
tree6f9c7205f391c65ef8076736abc3cb135ce19d88 /Xext/xtest.c
parentd61ed6c8a2823a3532439d5cb9f355129c93f523 (diff)
Enable event delivery for multiple heads.
Requires moving the spriteTrace into the DeviceIntRec and adjusting a few functions to take in device argument, most notably XYToWindow(). Cursor rendering on the second screen is busted.
Diffstat (limited to 'Xext/xtest.c')
-rw-r--r--Xext/xtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index 93e88c471..963029cce 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -363,7 +363,7 @@ ProcXTestFakeInput(client)
if (!dev)
dev = PickPointer(client);
if (ev->u.keyButtonPointer.root == None)
- root = GetCurrentRootWindow();
+ root = GetCurrentRootWindow(dev);
else
{
rc = dixLookupWindow(&root, ev->u.keyButtonPointer.root, client,
@@ -428,10 +428,10 @@ ProcXTestFakeInput(client)
if ((!noPanoramiXExtension
&& root->drawable.pScreen->myNum
!= XineramaGetCursorScreen(dev))
- || (noPanoramiXExtension && root != GetCurrentRootWindow()))
+ || (noPanoramiXExtension && root != GetCurrentRootWindow(dev)))
#else
- if (root != GetCurrentRootWindow())
+ if (root != GetCurrentRootWindow(dev))
#endif
{
NewCurrentScreen(dev, root->drawable.pScreen,