[PATCH xinput 1/4] test-xi2: drop unused grab code
Peter Hutterer
peter.hutterer at who-t.net
Tue Jul 2 17:09:52 PDT 2013
Not sure why this code is still here
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/test_xi2.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/src/test_xi2.c b/src/test_xi2.c
index 04e1004..0b64fad 100644
--- a/src/test_xi2.c
+++ b/src/test_xi2.c
@@ -365,25 +365,6 @@ test_xi2(Display *display,
XMapWindow(display, win);
XSync(display, False);
- {
- XIGrabModifiers modifiers[] = {{0, 0}, {0, 0x10}, {0, 0x1}, {0, 0x11}};
- int nmods = sizeof(modifiers)/sizeof(modifiers[0]);
-
- mask.deviceid = 2;
- memset(mask.mask, 0, mask.mask_len);
- XISetMask(mask.mask, XI_KeyPress);
- XISetMask(mask.mask, XI_KeyRelease);
- XISetMask(mask.mask, XI_ButtonPress);
- XISetMask(mask.mask, XI_ButtonRelease);
- XISetMask(mask.mask, XI_Motion);
- XIGrabButton(display, 2, 1, win, None, GrabModeAsync, GrabModeAsync,
- False, &mask, nmods, modifiers);
- XIGrabKeycode(display, 3, 24 /* q */, win, GrabModeAsync, GrabModeAsync,
- False, &mask, nmods, modifiers);
- XIUngrabButton(display, 3, 1, win, nmods - 2, &modifiers[2]);
- XIUngrabKeycode(display, 3, 24 /* q */, win, nmods - 2, &modifiers[2]);
- }
-
mask.deviceid = (deviceid == -1) ? XIAllMasterDevices : deviceid;
memset(mask.mask, 0, mask.mask_len);
XISetMask(mask.mask, XI_RawKeyPress);
--
1.8.2.1
More information about the xorg-devel
mailing list