Browse Source

fix: add restore event for minimized maximization (#35410)

Co-authored-by: mlaurencin <[email protected]>
trop[bot] 2 years ago
parent
commit
8d6c29ecbc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      shell/browser/native_window_views_win.cc

+ 2 - 0
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();