Commit 0364fae4 authored by Martin Flöser's avatar Martin Flöser

[autotests] Fix ScreenEdgeClientShowTest::testScreenEdgeShowHideX11 on new CI

On the new CI system this test is failing. This might be a variation of
Qt 5.10 as I'm able to reproduce with Qt 5.10. From the investigation it
is not a bug in KWin. The test was failing due to a missing xcb_flush.
This happens when we go back to the event loop which seems not to happen
in proper timing. By adding a qWait we force to go to the event loop, the
flush is performed and the test passes.
parent 8190927e
......@@ -164,6 +164,9 @@ void ScreenEdgeClientShowTest::testScreenEdgeShowHideX11()
QCOMPARE(effectsWindowShownSpy.count(), 1);
// go into event loop to trigger xcb_flush
//hide window again
Cursor::setPos(QPoint(640, 512));
xcb_change_property(, XCB_PROP_MODE_REPLACE, w, atom, XCB_ATOM_CARDINAL, 32, 1, &location);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment