diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-28 16:48:56 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-30 08:43:13 +1000 |
commit | f85619b14d130ec54d42cabfaee15e55ced0c665 (patch) | |
tree | 49b7f525ab0426e3ebb8275754e1329a24f1fa03 /dix | |
parent | 0217d0370c0b0bce66a9c09092eda8e820274e2e (diff) |
dix: update GetMaximumEventsNum() to real value (3).
GPE and friends now use internal events so they may generate up to 3 events.
One (optional) DeviceChanged event and one raw event plus a device event.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/getevents.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index ffd749717..5f0095430 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -567,13 +567,11 @@ updateMotionHistory(DeviceIntPtr pDev, CARD32 ms, int first_valuator, */ int GetMaximumEventsNum(void) { - /* One base event -- device, plus valuator events. */ - int ret = 1 + MAX_VALUATOR_EVENTS; - - /* One possible DeviceClassesChangedEvent */ - ret++; - - return ret; + /* One raw event + * One device event + * One possible device changed event + */ + return 3; } |