[PATCH 07/42] include: RawTouchEnd is the last event now

Peter Hutterer peter.hutterer at who-t.net
Wed Dec 14 19:01:44 PST 2011


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 at who-t.net>
---
 include/inputstr.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/inputstr.h b/include/inputstr.h
index 5aae1b5..e684798 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 */
 
 /**
-- 
1.7.7.1



More information about the xorg-devel mailing list