diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2021-05-30 13:26:36 +0300 |
---|---|---|
committer | Povilas Kanapickas <povilas@radix.lt> | 2021-05-30 13:26:36 +0300 |
commit | f3462178caf09a8777b8671eb03949b75c8ee07a (patch) | |
tree | 58c2aa95c0750ee36634927967084fee762fbf43 /test | |
parent | 407a2234b32d9cb3fed2cc7e8069bb41b98e143f (diff) | |
download | xserver-f3462178caf09a8777b8671eb03949b75c8ee07a.tar.gz |
test/xi2: Verify that XI_GestureSwipeEnd is ignored when outside mask
Diffstat (limited to 'test')
-rw-r--r-- | test/xi2/protocol-xiselectevents.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/xi2/protocol-xiselectevents.c b/test/xi2/protocol-xiselectevents.c index 6753bdfa6..7301c46b9 100644 --- a/test/xi2/protocol-xiselectevents.c +++ b/test/xi2/protocol-xiselectevents.c @@ -233,6 +233,17 @@ request_XISelectEvents_masks(xXISelectEventsReq * req) } /* Test 5: + * Mask len is 1 and XI_GestureSwipeEnd is set outside the mask. + * That bit should be ignored -> Success + */ + bits = (unsigned char *) &mask[1]; + mask->mask_len = 1; + memset(bits, 0, 5); + SetBit(bits, XI_ButtonPress); // does not matter which one + SetBit(bits, XI_GestureSwipeEnd); + request_XISelectEvent(req, Success); + + /* Test 6: * HierarchyChanged bit is BadValue for devices other than * XIAllDevices */ @@ -247,7 +258,7 @@ request_XISelectEvents_masks(xXISelectEventsReq * req) request_XISelectEvent(req, BadValue); } - /* Test 6: + /* Test 7: * All bits set minus hierarchy changed bit -> Success */ bits = (unsigned char *) &mask[1]; |