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>
This commit is contained in:
parent
0217d0370c
commit
f85619b14d
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user