summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-14 12:19:27 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-16 11:18:47 +1000
commit956a97487beada8cf5f354550ff779635cc64361 (patch)
tree011dec8d419916dbe04d31fe916b7b583ae1ab04
parent92c6c0c1d2d6a8882ed97b0e7f2952978ee5ce82 (diff)
include: RawTouchEnd is the last event now
Plus, use the actual definition from the protocol instead of the numeric values. Turns out not everyone knows the protocol event IDs by heart. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--include/inputstr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/inputstr.h b/include/inputstr.h
index 5aae1b512..e6847984b 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -49,6 +49,8 @@ SOFTWARE.
#ifndef INPUTSTRUCT_H
#define INPUTSTRUCT_H
+#include <X11/extensions/XI2proto.h>
+
#include <pixman.h>
#include "input.h"
#include "window.h"
@@ -71,7 +73,7 @@ extern _X_EXPORT int CountBits(const uint8_t *mask, int len);
* events to the protocol, the server will not support these events until
* this number here is bumped.
*/
-#define XI2LASTEVENT 17 /* XI_RawMotion */
+#define XI2LASTEVENT XI_RawTouchEnd
#define XI2MASKSIZE ((XI2LASTEVENT >> 3) + 1) /* no of bytes for masks */
/**