summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/xi2/protocol-xiselectevents.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/xi2/protocol-xiselectevents.c b/test/xi2/protocol-xiselectevents.c
index fe1c26df8..769d5a1da 100644
--- a/test/xi2/protocol-xiselectevents.c
+++ b/test/xi2/protocol-xiselectevents.c
@@ -159,6 +159,9 @@ static void request_XISelectEvents_masks(xXISelectEventsReq *req)
memset(bits, 0, mask->mask_len * 4);
for (j = 0; j <= XI_LASTEVENT; j++)
{
+ /* Can't select for these events */
+ if (j == XI_TouchMotion || j == XI_TouchEnd)
+ continue;
SetBit(bits, j);
request_XISelectEvent(req, Success);
ClearBit(bits, j);
@@ -175,6 +178,9 @@ static void request_XISelectEvents_masks(xXISelectEventsReq *req)
for (j = 0; j <= XI_LASTEVENT; j++)
{
+ /* Can't select for these events */
+ if (j == XI_TouchMotion || j == XI_TouchEnd)
+ continue;
SetBit(bits, j);
request_XISelectEvent(req, Success);
}
@@ -189,6 +195,9 @@ static void request_XISelectEvents_masks(xXISelectEventsReq *req)
for (j = XI_LASTEVENT + 1; j < mask->mask_len * 4; j++)
{
+ /* Can't select for these events */
+ if (j == XI_TouchMotion || j == XI_TouchEnd)
+ continue;
SetBit(bits, j);
request_XISelectEvent(req, BadValue);
ClearBit(bits, j);
@@ -202,6 +211,9 @@ static void request_XISelectEvents_masks(xXISelectEventsReq *req)
memset(bits, 0, mask->mask_len * 4);
for (j = 0; j <= XI_LASTEVENT; j++)
{
+ /* Can't select for these events */
+ if (j == XI_TouchMotion || j == XI_TouchEnd)
+ continue;
SetBit(bits, j);
request_XISelectEvent(req, Success);
}
@@ -231,6 +243,8 @@ static void request_XISelectEvents_masks(xXISelectEventsReq *req)
for (j = 0; j <= XI_LASTEVENT; j++)
SetBit(bits, j);
ClearBit(bits, XI_HierarchyChanged);
+ ClearBit(bits, XI_TouchMotion);
+ ClearBit(bits, XI_TouchEnd);
for (j = 1; j < 6; j++)
{
mask->deviceid = j;