diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-12-10 11:35:09 +1000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-01-09 10:30:26 -0800 |
commit | 3519f83f509dd0363f574d3a68b21df98d5f2732 (patch) | |
tree | 38b0886a1e51583281c3414ff592f5fa382bf816 | |
parent | 3ec3b502e3c6f0b74f8d96f7dda4f872156589a1 (diff) |
dix: move MAX_VALUATOR_EVENTS into include/input.h
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 0b4fef6337d88ae8ef05b8b73941350a9007565c)
-rw-r--r-- | dix/getevents.c | 4 | ||||
-rw-r--r-- | include/input.h | 5 | ||||
-rw-r--r-- | mi/mieq.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index 9592d4cc5..707d1da2f 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -61,10 +61,6 @@ #include "exglobals.h" #include "extnsionst.h" -/* Maximum number of valuators, divided by six, rounded up, to get number - * of events. */ -#define MAX_VALUATOR_EVENTS 6 - /* Number of motion history events to store. */ #define MOTION_HISTORY_SIZE 256 diff --git a/include/input.h b/include/input.h index c78f0b750..82ee2360c 100644 --- a/include/input.h +++ b/include/input.h @@ -69,7 +69,10 @@ SOFTWARE. #define PtrAccelLightweight 2 #define PtrAccelDefault PtrAccelPredictable -#define MAX_VALUATORS 36 /* XXX from comment in dix/getevents.c */ +#define MAX_VALUATORS 36 +/* Maximum number of valuators, divided by six, rounded up, to get number + * of events. */ +#define MAX_VALUATOR_EVENTS 6 #define NO_AXIS_LIMITS -1 @@ -93,7 +93,7 @@ mieqInit(void) miEventQueue.handlers[i] = NULL; for (i = 0; i < QUEUE_SIZE; i++) { - EventListPtr evlist = InitEventList(7); /* 1 + MAX_VALUATOR_EVENTS */ + EventListPtr evlist = InitEventList(1 + MAX_VALUATOR_EVENTS); if (!evlist) FatalError("Could not allocate event queue.\n"); miEventQueue.events[i].events = evlist; |