Some games react to focus change before we have a chance to apply window state updates to the win32 side. In that case ignore the window config change until a later time as they will still have their minimized size.
From: Rémi Bernon rbernon@codeweavers.com
Some games react to focus change before we have a chance to apply window state updates to the win32 side. In that case ignore the window config change until a later time as they will still have their minimized size. --- dlls/winex11.drv/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 7ae1d8ef66a..4bdb274939c 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -1795,7 +1795,7 @@ static void sync_window_position( struct x11drv_win_data *data, UINT swp_flags, RECT new_rect, window_rect; BOOL above = FALSE;
- if (data->managed && data->desired_state.wm_state == IconicState) return; + if (data->managed && ((style & WS_MINIMIZE) || data->desired_state.wm_state == IconicState)) return;
if (!(swp_flags & SWP_NOZORDER) || (swp_flags & SWP_SHOWWINDOW)) {