summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-05-13 13:47:52 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-05-13 13:47:52 +0930
commit8b3802d32041547fd6ed5393a56281c5c83d260e (patch)
tree0c1b581bccf500507472b5c7840373b582e122c0 /Xext
parent8234af6c6a3ade13f7720743bde79957c7df3f6c (diff)
Xext: core button events have rootX/Y unset too.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xtest.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index e11f35876..e96375db7 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -455,12 +455,9 @@ ProcXTestFakeInput(client)
case ButtonRelease:
if (!extension)
dev = PickPointer(client);
- else
- {
- /* For XI events, the rootX/Y is unset. */
- ev->u.keyButtonPointer.rootX = dev->lastx;
- ev->u.keyButtonPointer.rootY = dev->lasty;
- }
+
+ ev->u.keyButtonPointer.rootX = dev->lastx;
+ ev->u.keyButtonPointer.rootY = dev->lasty;
if (!ev->u.u.detail || ev->u.u.detail > dev->button->numButtons)
{
client->errorValue = ev->u.u.detail;