From 2f496838f6dd7191f383c52801e211c4f016abc5 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Mon, 10 Oct 2016 13:10:33 +0200 Subject: [PATCH] Fix failing test for touch drag Don't send both touch down and touch move in the same frame. This confuses mouse synthesis. Task-number: QTBUG-56433 Change-Id: I7f0b88d6a27c87464c26ce1c194dc7f07a0eb382 Reviewed-by: Paul Olav Tvete --- tests/auto/wayland/client/tst_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/wayland/client/tst_client.cpp b/tests/auto/wayland/client/tst_client.cpp index 74363ef5fa0..0749239f8ed 100644 --- a/tests/auto/wayland/client/tst_client.cpp +++ b/tests/auto/wayland/client/tst_client.cpp @@ -300,6 +300,7 @@ void tst_WaylandClient::touchDrag() const int id = 0; compositor->sendTouchDown(surface, QPoint(10, 10), id); + compositor->sendTouchFrame(surface); compositor->sendTouchMotion(surface, QPoint(20, 20), id); compositor->sendTouchFrame(surface); compositor->waitForStartDrag();