qt5base-lts/tests/auto/gui/kernel/qwindow
Tor Arne Vestbø 70d7c6a937 Avoid creating child windows twice when already visible
When a child window is made visible without its parent having been
created yet, we defer creating and making the child visible until
the parent is created.

But if a child window is explicitly created, we create the parent
first. And creating the parent will in turn apply visibility to
all children that had their visibility deferred. Which includes
creating the child.

This results in child -> parent -> child creation recursion,
which means that when we return from creating the parent window
we already have a platform window for our child, and should
bail out.

Pick-to: 6.6 6.5
Change-Id: I11dc4864b57f031de2cca70b79cdfc057d4fbd0d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-10-21 19:23:12 +02:00
..
BLACKLIST QWindow test: Blacklist enterLeaveOnWindowShowHide 2023-05-25 12:07:35 +00:00
CMakeLists.txt xcb: Implement native window helper for embeddedwindows/foreign window test 2023-09-12 02:47:24 +02:00
tst_foreignwindow.cpp xcb: Reflect geometry of foreign window on creation 2023-09-12 16:29:58 +02:00
tst_qwindow.cpp Avoid creating child windows twice when already visible 2023-10-21 19:23:12 +02:00