diff options
author | Bartosz Fabianowski <freebsd@chillt.de> | 2007-12-07 02:38:14 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-12-14 13:15:26 +0200 |
commit | 5b02a6ca5b31db69d08f2f452494c0f93a6260d9 (patch) | |
tree | 9ae5cd6ebd377d2ec1f25ed22bc1bb4712c5b73b /mi | |
parent | a14a143832be844b4b890b0160ccb9fc8293c28c (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); |