dix: GetMaximumEventsNum() needs to return 3 + MAX_VALUATOR_EVENTS.
Raw events can be generated for pointer events, so 2 + MVE isn't enough.
This commit is contained in:
parent
32d0440c7f
commit
de06a47d4a
|
@ -191,9 +191,10 @@ updateMotionHistory(DeviceIntPtr pDev, CARD32 ms, int first_valuator,
|
||||||
*/
|
*/
|
||||||
_X_EXPORT int
|
_X_EXPORT int
|
||||||
GetMaximumEventsNum(void) {
|
GetMaximumEventsNum(void) {
|
||||||
/* Two base events -- core and device, plus valuator events. Multiply
|
/* Three base events -- raw event, core and device, plus valuator events.
|
||||||
* by two if we're doing key repeats. */
|
* Multiply by two if we're doing key repeats.
|
||||||
int ret = 2 + MAX_VALUATOR_EVENTS;
|
*/
|
||||||
|
int ret = 3 + MAX_VALUATOR_EVENTS;
|
||||||
|
|
||||||
#ifdef XKB
|
#ifdef XKB
|
||||||
if (noXkbExtension)
|
if (noXkbExtension)
|
||||||
|
|
Loading…
Reference in New Issue