diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-11 13:46:20 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-11 13:46:20 +1000 |
commit | dd2786aff895375b71f32c346e69df6eb79683ec (patch) | |
tree | bb85786ce5275fd4d8bf41a1f6e02150392d0b09 | |
parent | d5ffd663f59d76d7d0b28359c5f5c6048c955b0f (diff) |
server/barriers: pull down first button press after grab activation
Even if not selected by the event mask, the button press event is still
delivered. History. yay.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | tests/server/barriers-notify.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/server/barriers-notify.cpp b/tests/server/barriers-notify.cpp index fea9286..ac004bd 100644 --- a/tests/server/barriers-notify.cpp +++ b/tests/server/barriers-notify.cpp @@ -572,6 +572,11 @@ TEST_F(BarrierNotify, EventsDuringPassiveGrab) dev->PlayOne(EV_KEY, BTN_LEFT, 1, True); dev->PlayOne(EV_REL, REL_X, -40, True); dev->PlayOne(EV_KEY, BTN_LEFT, 0, True); + { + XITEvent<XIDeviceEvent> press(dpy, GenericEvent, xi2_opcode, XI_ButtonPress); + ASSERT_TRUE(press.ev); + } + ASSERT_FALSE(xorg::testing::XServer::WaitForEvent(dpy, 500)); XIUngrabButton(dpy, VIRTUAL_CORE_POINTER_ID, 1, root, 1, &mods); |