From: Rémi Bernon <rbernon@codeweavers.com> --- dlls/winex11.drv/window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index e5cf1c90080..baed7607de6 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -1681,8 +1681,7 @@ static UINT window_update_client_state( struct x11drv_win_data *data ) if (data->mwm_hints_serial) return 0; /* another MWM_HINT update is pending, wait for it to complete */ if (data->configure_serial) return 0; /* another config update is pending, wait for it to complete */ - new_style = old_style & ~(WS_VISIBLE | WS_MINIMIZE | WS_MAXIMIZE); - if (data->current_state.wm_state != WithdrawnState) new_style |= WS_VISIBLE; + new_style = old_style & ~(WS_MINIMIZE | WS_MAXIMIZE); if (data->current_state.wm_state == IconicState) new_style |= WS_MINIMIZE; if (data->current_state.net_wm_state & (1 << NET_WM_STATE_MAXIMIZED)) new_style |= WS_MAXIMIZE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9797