winex11.drv: Fix window stacking order with insert_after parameter.

When calling the SetWindowPos function to change the window Z-order with an insert_after parameter as a real window handle, the expected result is that the insert_after window appears above the specified window hwnd. For example, calling SetWindowPos(g_hwndB, g_hwndA, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW | SWP_NOACTIVATE) should result in window A appearing above window B. Below is a demo showing test results on Windows versus Wine:

The initial z-order of WindowA and WindowB is: WindowB is above WindowA:

zo-1.png

Next, click the "Place WindowA above WindowB" button on Windows and Wine respectively. The test results are as follows:

On Windows, After clicking the button, WindowA is placed above WindowB:

zo-2.png


On wine, After clicking the button, the Z-order of WindowA and WindowB remains unchanged:

image.png

demo:

demo.cpp

Signed-off-by: Zhao Yi zhaoyi@uniontech.com

Merge request reports

Loading