That fails because the window gains WS_CLIPSIBLINGS after SetParent(0) on native but that doesn't happen on wine.
``` HWND hwnd = ... HWND hwnd2 = ... SetParent(hwnd, hwnd2); SetWindowLongPtrW(hwnd, GWL_STYLE, WS_OVERLAPPEDWINDOW); // no WS_CLIPSIBLINGS SetParent(hwnd, 0); // has WS_CLIPSIBLINGS on native but not wine SetWindowLongPtrW(hwnd, GWL_STYLE, WS_OVERLAPPEDWINDOW); // both native and wine have WS_CLIPSIBLINGS ```
I see wine forces WS_CLIPSIBLINGS when the parent is the desktop window in win32u/window.c:set_window_long but no such thing on NtUserSetParent.