From e20536f84182bf01a90f2f0842e592b7cb0c5c1e Mon Sep 17 00:00:00 2001 From: msizanoen1 Date: Tue, 19 Jul 2022 05:16:01 +0200 Subject: [PATCH] fix: pass frame_->IsMaximized() to GetWindowFrameProvider This ensures that the toolkit renders the window decorations in maximized mode while the window is maximized to ensure that there is no empty space around the window. --- shell/browser/ui/views/client_frame_view_linux.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/browser/ui/views/client_frame_view_linux.cc b/shell/browser/ui/views/client_frame_view_linux.cc index dfca666728c8c..0de7251487ebd 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();