On Tue Feb 3 06:13:00 2026 +0000, Zhao Yi wrote:
After applying this MR !9999, running the above demo on Wine and clicking the "Place WindowA above WindowB" button results in WindowA being placed above WindowB, which matches the behavior observed when running the same demo on Windows: {width=877 height=447} Yes, that is right. Your fix works, and that's great! What I am saying is, we want to make sure:
1. in the future, we won't accidentally break this again. 2. what happens under wine is indeed the same as what happens under Windows. So I am suggesting, can you add a test case to programmatically verify, the result of calling `SetWindowPos` is what you would expect? You can have a look at `dlls/user32/tests/win.c`, in function `test_SetWindowPos`, you can find how this kind of stuff are being tested. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9999#note_128625