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 /dix | |
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 'dix')
-rw-r--r-- | dix/getevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index 08744ae03..40fc7f2a9 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -707,7 +707,7 @@ _X_EXPORT int GetProximityEvents(xEvent *events, DeviceIntPtr pDev, int type, int first_valuator, int num_valuators, int *valuators) { - int num_events = 0; + int num_events = 1; deviceKeyButtonPointer *kbp = (deviceKeyButtonPointer *) events; /* Sanity checks. */ |