On Fri Aug 29 10:27:48 2025 +0000, xianwei zheng wrote:
> Without providing the software and Wine code, is there anything I can
> offer that could help you pinpoint the issue?
Please open a new bug on https://bugs.winehq.org, with a WINEDEBUG=+pid,+timestamp,+bitblt,+win,+opengl,+wgl,+x11drv trace attached if possible.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8694#note_114189
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.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8848#note_114181
On Fri Aug 29 10:26:14 2025 +0000, xianwei zheng wrote:
> This code change caused screen tearing in our internal software.
Without providing the software and Wine code, is there anything I can offer that could help you pinpoint the issue?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8694#note_114180
--
v4: kernelbase: For FILE_FLAG_BACKUP_SEMANTICS also handle FILE_ATTRIBUTE_DIRECTORY in CreateFile.
kernel32/tests: Test FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_POSIX_SEMANTICS | FILE_ATTRIBUTE_DIRECTORY.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8846