summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorBartosz Fabianowski <freebsd@chillt.de>2007-12-07 02:38:14 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-12-14 13:15:26 +0200
commit5b02a6ca5b31db69d08f2f452494c0f93a6260d9 (patch)
tree9ae5cd6ebd377d2ec1f25ed22bc1bb4712c5b73b /mi
parenta14a143832be844b4b890b0160ccb9fc8293c28c (diff)
Input: Fix proximity events with valuators
Initialise num_events to 1, so we always send a proximity event, and then optionally valuator events. Also make sure mieq can deal with valuator events sent after proximity events.
Diffstat (limited to 'mi')
-rw-r--r--mi/mieq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index d946e7d04..c2f687a6b 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -128,7 +128,9 @@ mieqEnqueue(DeviceIntPtr pDev, xEvent *e)
if (oldtail == miEventQueue.head ||
!(lastkbp->type == DeviceMotionNotify ||
lastkbp->type == DeviceButtonPress ||
- lastkbp->type == DeviceButtonRelease) ||
+ lastkbp->type == DeviceButtonRelease ||
+ lastkbp->type == ProximityIn ||
+ lastkbp->type == ProximityOut) ||
((lastkbp->deviceid & DEVICE_BITS) !=
(v->deviceid & DEVICE_BITS))) {
ErrorF("mieqEnequeue: out-of-order valuator event; dropping.\n");