diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-03-10 15:07:17 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-07-03 10:08:33 +1000 |
commit | d08c42788cc711a7abfc51279d450847684cad7c (patch) | |
tree | 15c7c406bf391d7fab0253a62ab80ca40553110a | |
parent | cac73b0cddc5a3d9a97e1698a5498c26fd1b5e0f (diff) |
test-xi2: group event selection down
No real functional changes, just group the two selection requests together.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/test_xi2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test_xi2.c b/src/test_xi2.c index b64368e..40cc76e 100644 --- a/src/test_xi2.c +++ b/src/test_xi2.c @@ -363,9 +363,6 @@ test_xi2(Display *display, if (m->deviceid == XIAllDevices) XISetMask(m->mask, XI_HierarchyChanged); XISetMask(m->mask, XI_PropertyEvent); - XISelectEvents(display, win, m, 1); - XMapWindow(display, win); - XSync(display, False); m = &mask[1]; m->deviceid = (deviceid == -1) ? XIAllMasterDevices : deviceid; @@ -381,7 +378,11 @@ test_xi2(Display *display, XISetMask(m->mask, XI_RawTouchUpdate); XISetMask(m->mask, XI_RawTouchEnd); #endif - XISelectEvents(display, DefaultRootWindow(display), m, 1); + + XISelectEvents(display, win, &mask[0], 1); + XISelectEvents(display, DefaultRootWindow(display), &mask[1], 1); + XMapWindow(display, win); + XSync(display, False); free(mask[0].mask); free(mask[1].mask); |