diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-04-03 14:22:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-04-03 14:27:34 +1000 |
commit | 85d3ff5fa700e2b801c5f756f03d5186a1c3558d (patch) | |
tree | 0ff704f7660755358652b81f028acf2551d5eb89 | |
parent | 2e011db3faf786535913cc6d76e6dbfc01117232 (diff) |
input/wacom: remove unneded event flushing loops
XSync(dpy, True) drops all events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | tests/input/wacom-input-matrix.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/input/wacom-input-matrix.cpp b/tests/input/wacom-input-matrix.cpp index 4576ba8..216f2fb 100644 --- a/tests/input/wacom-input-matrix.cpp +++ b/tests/input/wacom-input-matrix.cpp @@ -236,9 +236,7 @@ void test_area (Display *dpy, xorg::testing::evemu::Device *dev, compute_input_matrix (dpy, x, y, width, height, &matrix); ASSERT_TRUE (set_input_matrix (dpy, deviceid, &matrix)); - XSync(dpy, False); - while(XPending(dpy)) - XNextEvent(dpy, &ev); + XSync(dpy, True); // Simulate stylus movement for the entire tablet resolution int minx, maxx; @@ -264,8 +262,7 @@ void test_area (Display *dpy, xorg::testing::evemu::Device *dev, EXPECT_LE (ev.xmotion.y_root, y + height); } - while(XPending(dpy)) - XNextEvent(dpy, &ev); + XSync(dpy, True); } TEST_F(WacomMatrixTest, InputMatrix) |