[PATCH 0/2] MR9614: win32u: Skip minimized windows when looking for another window to activate.
From: Rémi Bernon <rbernon(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59010 --- dlls/win32u/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index 8724175ac0c..4c52bc21f2a 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -4246,6 +4246,7 @@ static BOOL can_activate_window( HWND hwnd ) style = get_window_long( hwnd, GWL_STYLE ); if (!(style & WS_VISIBLE)) return FALSE; if ((style & (WS_POPUP|WS_CHILD)) == WS_CHILD) return FALSE; + if (style & WS_MINIMIZE) return FALSE; return !(style & WS_DISABLED); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9614
From: Rémi Bernon <rbernon(a)codeweavers.com> So they don't try to activate the owner when getting hidden, which might spuriously restore it. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59010 --- dlls/win32u/defwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/defwnd.c b/dlls/win32u/defwnd.c index 03662963db3..384112fddda 100644 --- a/dlls/win32u/defwnd.c +++ b/dlls/win32u/defwnd.c @@ -988,8 +988,8 @@ static LRESULT handle_sys_command( HWND hwnd, WPARAM wparam, LPARAM lparam ) break; case SC_MINIMIZE: - NtUserShowOwnedPopups( hwnd, FALSE ); NtUserShowWindow( hwnd, SW_MINIMIZE ); + NtUserShowOwnedPopups( hwnd, FALSE ); break; case SC_MAXIMIZE: -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9614
participants (1)
-
Rémi Bernon