mirror of https://github.com/qt/qtbase.git
Fix flaky tst_QWindow::windowExposedAfterReparent on Ubuntu 24.04
tst_QWindow::windowExposedAfterReparent is flaky on Ubuntu 24.04. The child qwindow being reparented is not correctly converted to a toplevel window by the window manager. Close the child qwindow before reparenting it. Fixes: QTBUG-129023 Change-Id: I9152e4cc3acd3ac757cb5e3b18669a07acd82e33 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
f54683155d
commit
aa52e34173
|
@ -3264,12 +3264,14 @@ void tst_QWindow::windowExposedAfterReparent()
|
|||
QVERIFY(QTest::qWaitForWindowExposed(&parent));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&child));
|
||||
|
||||
// Close the child before reparenting it to ensure it is correctly converted
|
||||
// to a toplevel window by the window manager.
|
||||
child.close();
|
||||
child.setParent(nullptr);
|
||||
QCoreApplication::processEvents();
|
||||
child.show();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&child));
|
||||
|
||||
child.setParent(&parent);
|
||||
QCoreApplication::processEvents();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&child));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
[layoutDirection]
|
||||
ubuntu-22.04
|
||||
ubuntu-24.04
|
||||
|
|
Loading…
Reference in New Issue