summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-04-30 12:33:00 -0700
committerKeith Packard <keithp@keithp.com>2010-04-30 12:33:00 -0700
commita974c8e7cba40c8d7d1b91e07de8c414627b71a2 (patch)
tree585b1d0911c8387de1ae9339dad0898f997df5bd /Xext
parent6581bc4591746c906d97f8b868f946c47bc6d756 (diff)
parent02e86221b851e5423a95782aa7e297ea051022ca (diff)
Merge remote branch 'whot/for-keith'
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xtest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index a1aacc4cd..99b6711f2 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -184,6 +184,7 @@ ProcXTestFakeInput(ClientPtr client)
int i;
int base = 0;
int flags = 0;
+ int need_ptr_update = 1;
nev = (stuff->length << 2) - sizeof(xReq);
if ((nev % sizeof(xEvent)) || !nev)
@@ -388,6 +389,8 @@ ProcXTestFakeInput(ClientPtr client)
client->errorValue = ev->u.u.detail;
return BadValue;
}
+
+ need_ptr_update = 0;
break;
case MotionNotify:
if (!dev->valuator)
@@ -452,7 +455,8 @@ ProcXTestFakeInput(ClientPtr client)
for (i = 0; i < nevents; i++)
mieqProcessDeviceEvent(dev, (InternalEvent*)(xtest_evlist+i)->event, NULL);
- miPointerUpdateSprite(dev);
+ if (need_ptr_update)
+ miPointerUpdateSprite(dev);
return client->noClientException;
}