http://bugs.winehq.org/show_bug.cgi?id=58692
Bug ID: 58692 Summary: Incorrect owner-owned windows z-order support Product: Wine Version: 10.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: goltsov@imedis.ru Distribution: ---
I create two WS_OVERLAPPED or WS_PPUP (not having WS_CHILD!) windows, one is owned by another:
hwnd1 = CreateWindow(....., 0, .....); hwnd2 = CreateWindow(....., hwnd1, .....);
In Windows hwnd2 is allways placed over hwnd1 and hides when hwnd1 is minimized. In Wine itself (when graphics options do not allow Window Manager to arrange and decorate Wine windows) hwnd1 and hwnd2 act as windows of the same level: when hwnd1 is activated it is displayed over hmnd2 and vise versa - WHY?! This is the basic windows behaviour, why it is incorrect?
If Window Manager is allowed to manage&decorate Wine windows, the behaviour is more similiar to one under native Windows, but with another problems:
- "minimize" buttons of all windows are hidden for some unknown reason...
- if we have hwnd2 and hwnd3 as owned windows of hwnd1, and hwnd1, then hwnd2, then hwnd3 are activated - and hwnd3 is closed - hwnd1 is activated instead of previously active hwnd2 - differs from native Windows behaviour.
Linux Minth dated summer 2025