From 4f9cbe4369a95aa29b811bb1c7352a7e7cb8f24d Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 14 Feb 2020 02:00:08 +0200 Subject: [PATCH] [autotests] Make XWaylandInputTest more robust --- autotests/integration/xwayland_input_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/integration/xwayland_input_test.cpp b/autotests/integration/xwayland_input_test.cpp index 0cecabe979..8ae9108685 100644 --- a/autotests/integration/xwayland_input_test.cpp +++ b/autotests/integration/xwayland_input_test.cpp @@ -196,12 +196,12 @@ void XWaylandInputTest::testPointerEnterLeaveSsd() QCOMPARE(waylandServer()->seat()->focusedPointerSurface(), client->surface()); QVERIFY(waylandServer()->seat()->focusedPointer()); QVERIFY(enteredSpy.wait()); - QCOMPARE(enteredSpy.last().first(), QPoint(49, 81)); + QCOMPARE(enteredSpy.last().first(), client->frameGeometry().center() - client->clientPos()); // move out of window Cursor::setPos(client->frameGeometry().bottomRight() + QPoint(10, 10)); QVERIFY(leftSpy.wait()); - QCOMPARE(leftSpy.last().first(), QPoint(49, 81)); + QCOMPARE(leftSpy.last().first(), client->frameGeometry().center() - client->clientPos()); // destroy window again QSignalSpy windowClosedSpy(client, &X11Client::windowClosed);