diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-12-06 12:22:58 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-12-06 12:23:32 -0500 |
commit | b2d4b666305817e27bc9698e8ad1fa611453a427 (patch) | |
tree | 6fc7ae5d2c66df02672acccf4c94e17cfcdacf36 | |
parent | 42513c12b906567381a89e8b26b7006434585bdb (diff) |
barriers-notify: The PointerReleased flag should be on the Leave
And we shouldn't have a Hit
-rw-r--r-- | tests/server/barriers-notify.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/server/barriers-notify.cpp b/tests/server/barriers-notify.cpp index 970e9d3..4d454f7 100644 --- a/tests/server/barriers-notify.cpp +++ b/tests/server/barriers-notify.cpp @@ -163,19 +163,13 @@ TEST_F(BarrierNotify, BarrierReleases) XSync(dpy, False); dev->PlayOne(EV_REL, REL_X, -40, True); - { - XITEvent<XIBarrierEvent> event(dpy, GenericEvent, xi2_opcode, XI_BarrierLeave); - ASSERT_EQ(barrier, event.ev->barrier); - ASSERT_EQ(1, event.ev->event_id); - ASSERT_TRUE((event.ev->flags & XIBarrierPointerReleased)); - } - /* Immediately afterwards, we should have a new event - * because we exited the hit box */ + /* We should have a new event because we exited the hit box */ { XITEvent<XIBarrierEvent> event(dpy, GenericEvent, xi2_opcode, XI_BarrierLeave); ASSERT_EQ(barrier, event.ev->barrier); ASSERT_EQ(2, event.ev->event_id); + ASSERT_TRUE((event.ev->flags & XIBarrierPointerReleased)); } XFixesDestroyPointerBarrier(dpy, barrier); |