From da936bcf35e84aeac987c8a57522a7b48871d96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Thu, 14 Nov 2024 11:52:43 +0100 Subject: [PATCH] winex11: Use the new window state tracker to get WM_STATE value. --- dlls/winex11.drv/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 76da5da7886..29c10a913e3 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -1290,7 +1290,7 @@ static void handle_wm_state_notify( HWND hwnd, XPropertyEvent *event, BOOL updat style = NtUserGetWindowLongW( data->hwnd, GWL_STYLE ); - if (data->iconic && data->wm_state == NormalState) /* restore window */ + if (data->iconic && data->current_state.wm_state == NormalState) /* restore window */ { data->iconic = FALSE; if ((style & WS_CAPTION) == WS_CAPTION && (data->current_state.net_wm_state & (1 << NET_WM_STATE_MAXIMIZED))) @@ -1311,7 +1311,7 @@ static void handle_wm_state_notify( HWND hwnd, XPropertyEvent *event, BOOL updat } } } - else if (!data->iconic && data->wm_state == IconicState) + else if (!data->iconic && data->current_state.wm_state == IconicState) { data->iconic = TRUE; if ((style & WS_MINIMIZEBOX) && !(style & WS_DISABLED))