summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-11-03 09:30:20 +1000
committerChase Douglas <chase.douglas@canonical.com>2011-11-03 10:43:24 -0400
commit86ce2d05e86852d52f5b135ad03288e4cb16d5df (patch)
tree42b75d09db687e54a62be9738fa5adf46910db96
parentcec7567863c3d363b6b75c707540cfe524f849ba (diff)
XI2: swap (Raw)TouchUpdate and (Raw)TouchEnd
Not having the event codes in the order begin/update/end does my head in when debugging. It also means there's no symmetry between raw and normal touch events as the ownership event is wedged in between. Rearrange event codes to be Begin/Update/End for both, with the OwnershipEvent being in between. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--XI2.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/XI2.h b/XI2.h
index e66751c..5a8afb7 100644
--- a/XI2.h
+++ b/XI2.h
@@ -202,13 +202,13 @@
#define XI_RawButtonRelease 16
#define XI_RawMotion 17
#define XI_TouchBegin 18 /* XI 2.2 */
-#define XI_TouchEnd 19
-#define XI_TouchOwnership 20
-#define XI_TouchUpdate 21
+#define XI_TouchUpdate 19
+#define XI_TouchEnd 20
+#define XI_TouchOwnership 21
#define XI_RawTouchBegin 22
-#define XI_RawTouchEnd 23
-#define XI_RawTouchUpdate 24
-#define XI_LASTEVENT XI_RawTouchUpdate
+#define XI_RawTouchUpdate 23
+#define XI_RawTouchEnd 24
+#define XI_LASTEVENT XI_RawTouchEnd
/* NOTE: XI2LASTEVENT in xserver/include/inputstr.h must be the same value
* as XI_LASTEVENT if the server is supposed to handle masks etc. for this
* type of event. */