summaryrefslogtreecommitdiff
path: root/test/xi2/protocol-xiselectevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/xi2/protocol-xiselectevents.c')
-rw-r--r--test/xi2/protocol-xiselectevents.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/xi2/protocol-xiselectevents.c b/test/xi2/protocol-xiselectevents.c
index 6c94ea73c..6753bdfa6 100644
--- a/test/xi2/protocol-xiselectevents.c
+++ b/test/xi2/protocol-xiselectevents.c
@@ -124,6 +124,16 @@ _set_bit(unsigned char *bits, int bit)
SetBit(bits, XI_TouchUpdate);
SetBit(bits, XI_TouchEnd);
}
+ if (bit >= XI_GesturePinchBegin && bit <= XI_GesturePinchEnd) {
+ SetBit(bits, XI_GesturePinchBegin);
+ SetBit(bits, XI_GesturePinchUpdate);
+ SetBit(bits, XI_GesturePinchEnd);
+ }
+ if (bit >= XI_GestureSwipeBegin && bit <= XI_GestureSwipeEnd) {
+ SetBit(bits, XI_GestureSwipeBegin);
+ SetBit(bits, XI_GestureSwipeUpdate);
+ SetBit(bits, XI_GestureSwipeEnd);
+ }
}
static void
@@ -135,6 +145,16 @@ _clear_bit(unsigned char *bits, int bit)
ClearBit(bits, XI_TouchUpdate);
ClearBit(bits, XI_TouchEnd);
}
+ if (bit >= XI_GesturePinchBegin && bit <= XI_GesturePinchEnd) {
+ ClearBit(bits, XI_GesturePinchBegin);
+ ClearBit(bits, XI_GesturePinchUpdate);
+ ClearBit(bits, XI_GesturePinchEnd);
+ }
+ if (bit >= XI_GestureSwipeBegin && bit <= XI_GestureSwipeEnd) {
+ ClearBit(bits, XI_GestureSwipeBegin);
+ ClearBit(bits, XI_GestureSwipeUpdate);
+ ClearBit(bits, XI_GestureSwipeEnd);
+ }
}
static void