qt6-bb10/tests/auto/gui/kernel/qwindow
Tor Arne Vestbø be7e5f94a1 macOS: Check NSWindow as well when determining if setVisible can bail out
In be268ae197 we made QCocoaWindow::setVisible
idempotent by checking if NSView.hidden needed update.

This failed to take into account the case when a window is moved from
being a child window to a top level, where the window is still visible
and the NSView's hidden state doesn't change, but we need to order in
the NSWindow that we're now managing.

We now check NSWindow.visible as well, if we're a top level window.

Pick-to: 6.5 6.6
Change-Id: I94434d6ebfe2c9ece6eac7f83f17ead250ccc07a
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2023-10-30 18:28:57 +00: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 macOS: Check NSWindow as well when determining if setVisible can bail out 2023-10-30 18:28:57 +00:00