diff --git a/shell/browser/ui/views/client_frame_view_linux.cc b/shell/browser/ui/views/client_frame_view_linux.cc index d140364f243ae..97905462a45b9 100644 --- a/shell/browser/ui/views/client_frame_view_linux.cc +++ b/shell/browser/ui/views/client_frame_view_linux.cc @@ -131,7 +131,7 @@ void ClientFrameViewLinux::Init(NativeWindowViews* window, host_supports_client_frame_shadow_ = tree_host->SupportsClientFrameShadow(); frame_provider_ = ui::LinuxUi::instance()->GetWindowFrameProvider( - !host_supports_client_frame_shadow_); + !host_supports_client_frame_shadow_, frame_->IsMaximized()); UpdateWindowTitle(); @@ -274,6 +274,9 @@ void ClientFrameViewLinux::Layout() { return; } + frame_provider_ = ui::LinuxUi::instance()->GetWindowFrameProvider( + !host_supports_client_frame_shadow_, frame_->IsMaximized()); + UpdateButtonImages(); LayoutButtons();