diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-08-23 11:10:36 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2019-08-26 13:55:00 +0000 |
commit | fac77d5174662f4ab98531236158e2df38d9d158 (patch) | |
tree | 84dad2ffb542066076a68a633e6f0548b7d80d68 /tests/auto/client/output/tst_output.cpp | |
parent | c05da4d841f97daceb168bd5f04f1d0753d45f00 (diff) | |
download | qtwayland-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.cpp | 3 |
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 |