From 6f53f62741b87dc9c2232381c436e95f3afa81da Mon Sep 17 00:00:00 2001 From: Andreas Haratzis Date: Wed, 23 Sep 2020 18:53:38 -0700 Subject: [PATCH] Fix for PlasmaSurfaceTest broken in a3b50500 TestPanelWindowsCanCover now needs to wait for the event queue to process the hover event. --- autotests/integration/plasma_surface_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/autotests/integration/plasma_surface_test.cpp b/autotests/integration/plasma_surface_test.cpp index 71001b850a..6650227bbc 100644 --- a/autotests/integration/plasma_surface_test.cpp +++ b/autotests/integration/plasma_surface_test.cpp @@ -370,6 +370,7 @@ void PlasmaSurfaceTest::testPanelWindowsCanCover() // trigger screenedge QFETCH(QPoint, triggerPoint); KWin::Cursors::self()->mouse()->setPos(triggerPoint); + QVERIFY(stackingOrderChangedSpy.wait()); QCOMPARE(stackingOrderChangedSpy.count(), 1); stackingOrder = workspace()->stackingOrder(); QCOMPARE(stackingOrder.count(), 2);