summaryrefslogtreecommitdiff
path: root/tests/auto/client/output/tst_output.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-08-23 11:10:36 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2019-08-26 13:55:00 +0000
commitfac77d5174662f4ab98531236158e2df38d9d158 (patch)
tree84dad2ffb542066076a68a633e6f0548b7d80d68 /tests/auto/client/output/tst_output.cpp
parentc05da4d841f97daceb168bd5f04f1d0753d45f00 (diff)
downloadqtwayland-fac77d5174662f4ab98531236158e2df38d9d158.tar.gz
Client tests: Upgrade tests to wl_seat v5
This means that pointer events need to be followed by frame events. wl_seat version 4 is tested by the "tst_seatv4" autotest. Change-Id: Ifa8e6d6edc998853be7cd901003e619029fc6f68 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/client/output/tst_output.cpp')
-rw-r--r--tests/auto/client/output/tst_output.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/client/output/tst_output.cpp b/tests/auto/client/output/tst_output.cpp
index 2d2c8efd..29c773cf 100644
--- a/tests/auto/client/output/tst_output.cpp
+++ b/tests/auto/client/output/tst_output.cpp
@@ -196,8 +196,11 @@ void tst_output::removePrimaryScreen()
exec([&] {
auto *surface = xdgToplevel()->surface();
pointer()->sendEnter(surface, {32, 32});
+ pointer()->sendFrame(client());
pointer()->sendButton(client(), BTN_LEFT, 1);
+ pointer()->sendFrame(client());
pointer()->sendButton(client(), BTN_LEFT, 0);
+ pointer()->sendFrame(client());
});
// Wait to make sure mouse events dont't cause a crash now that the screen has changed