From 3ce35f224efa3a6e9bfc9b642816961b8691491b Mon Sep 17 00:00:00 2001 From: Michaela Laurencin <35157522+mlaurencin@users.noreply.github.com> Date: Mon, 22 Aug 2022 18:32:42 -0700 Subject: [PATCH] fix: add restore event for minimized maximization (#35342) --- shell/browser/native_window_views_win.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/browser/native_window_views_win.cc b/shell/browser/native_window_views_win.cc index dc6f089d06bf..e4288d047c30 100644 --- a/shell/browser/native_window_views_win.cc +++ b/shell/browser/native_window_views_win.cc @@ -413,6 +413,8 @@ void NativeWindowViews::HandleSizeEvent(WPARAM w_param, LPARAM l_param) { // multiple times for one resize because of the SetWindowPlacement call. if (w_param == SIZE_MAXIMIZED && last_window_state_ != ui::SHOW_STATE_MAXIMIZED) { + if (last_window_state_ == ui::SHOW_STATE_MINIMIZED) + NotifyWindowRestore(); last_window_state_ = ui::SHOW_STATE_MAXIMIZED; NotifyWindowMaximize(); ResetWindowControls();