From 8b3802d32041547fd6ed5393a56281c5c83d260e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 13 May 2008 13:47:52 +0930 Subject: Xext: core button events have rootX/Y unset too. --- Xext/xtest.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Xext/xtest.c') 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; -- cgit v1.2.3