summaryrefslogtreecommitdiff
path: root/mi/mieq.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-10-27 01:25:21 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-10-27 01:25:21 +0300
commita5be65401769fabcb5001dc63035c69f9e4a2712 (patch)
tree299903448348ef63205c21246d9f3a0e19776a5d /mi/mieq.c
parent85212eb504f860b054eb0f0a5029fed86cb8d1c0 (diff)
mieqEnqueue: only compare DEVICE_BITS of deviceid
Only compare DEVICE_BITS of the two deviceids, so we don't decide that a valuator event isn't for us, because (id | MORE_EVENTS) != id.
Diffstat (limited to 'mi/mieq.c')
-rw-r--r--mi/mieq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index 63cd6e1cd..be76580ae 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -117,7 +117,8 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e)
!(lastkbp->type == DeviceMotionNotify ||
lastkbp->type == DeviceButtonPress ||
lastkbp->type == DeviceButtonRelease) ||
- (lastkbp->deviceid != v->deviceid)) {
+ ((lastkbp->deviceid & DEVICE_BITS) !=
+ (v->deviceid & DEVICE_BITS))) {
ErrorF("mieqEnequeue: out-of-order valuator event; dropping.\n");
return;
}