Skip to content

Commit

Permalink
fix: WCO pressed background state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 28, 2022
1 parent 47afadd commit 4981b20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shell/browser/native_window_views_win.cc
Expand Up @@ -439,6 +439,13 @@ void NativeWindowViews::HandleSizeEvent(WPARAM w_param, LPARAM l_param) {
default:
break;
}
// If a given window was minimized/maximized and has since been
// restored, ensure the WCO buttons are set to normal state.
auto* ncv = widget()->non_client_view();
if (titlebar_overlay_enabled() && ncv) {
auto* frame_view = static_cast<WinFrameView*>(ncv->frame_view());
frame_view->caption_button_container()->ResetWindowControls();
}
break;
}
}
Expand Down

0 comments on commit 4981b20

Please sign in to comment.