summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-11 07:31:43 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-13 13:24:57 +1000
commitf0de5e3990b70df9899b7dd17d7ee6ff7c768183 (patch)
tree59665e2cbd0d79d21d676b40cf56885c43254e8e /include
parentadf8a0d62c0643f4c44a3b6d2e3c6c9b02532915 (diff)
dix: add a MAXEVENTS define for the number of core + extension events
Not including GenericEvents Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Walter Harms <wharms@bfs.de> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include')
-rw-r--r--include/inpututils.h2
-rw-r--r--include/misc.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/inpututils.h b/include/inpututils.h
index 5aa60c2c1..9e22c5a28 100644
--- a/include/inpututils.h
+++ b/include/inpututils.h
@@ -32,7 +32,7 @@
#include "input.h"
#include <X11/extensions/XI2proto.h>
-extern Mask filters[MAXDEVICES][128];
+extern Mask event_filters[MAXDEVICES][MAXEVENTS];
struct _ValuatorMask {
int8_t last_bit; /* highest bit set in mask */
diff --git a/include/misc.h b/include/misc.h
index d9811ca60..09f928a50 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -89,6 +89,8 @@ OF THIS SOFTWARE.
#define MAXFORMATS 8
#define MAXDEVICES 40 /* input devices */
+/* 128 event opcodes for core + extension events, excluding GE */
+#define MAXEVENTS 128
#define EXTENSION_EVENT_BASE 64
#define EXTENSION_BASE 128