Skip to content

Commit

Permalink
fix: add restore event for minimized maximization (#35411)
Browse files Browse the repository at this point in the history
Co-authored-by: mlaurencin <mlaurencin@electronjs.org>
  • Loading branch information
trop[bot] and mlaurencin committed Aug 23, 2022
1 parent 81854a4 commit 6b97beb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/native_window_views_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6b97beb

Please sign in to comment.