On Tue Feb 3 03:52:16 2026 +0000, Yuxuan Shui wrote:
hi, i don't know enough to review this MR, but i feel it would make sense to have a test case in wine validating this behavior. i think it's possible to get the window stacking order with `GetTopWindow`/`GetNextWindow`. Thank you for your review. The window Z-order logic in Wine works as follows: when **SetWindowPos** is called, a window Z-order linked list is constructed on the **wineserver** side. When retrieving a window at a specified Z-order position—such as calling the **GetTopWindow/GetNextWindow** functions to obtain the top window or the next window—it is fetched from the window Z-order linked list built on the **wineserver** side. Therefore, the correct window at the specified Z-order position can always be retrieved. In the demo results running on Wine mentioned above, calling **GetNextWindow(hwnd, GW_HWNDNEXT)** to get the next window after window A returns window B, which aligns with the expected outcome: {width=900 height=447}
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9999#note_128604