Skip to content

Commit

Permalink
fix: pass frame_->IsMaximized() to GetWindowFrameProvider
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
msizanoen1 committed Aug 3, 2022
1 parent b8bc941 commit 8d5adb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shell/browser/ui/views/client_frame_view_linux.cc
Expand Up @@ -113,7 +113,7 @@ void ClientFrameViewLinux::Init(NativeWindowViews* window,
host_supports_client_frame_shadow_ = tree_host->SupportsClientFrameShadow();

frame_provider_ = views::LinuxUI::instance()->GetWindowFrameProvider(
!host_supports_client_frame_shadow_);
!host_supports_client_frame_shadow_, frame_->IsMaximized());

UpdateWindowTitle();

Expand Down Expand Up @@ -256,6 +256,9 @@ void ClientFrameViewLinux::Layout() {
return;
}

frame_provider_ = views::LinuxUI::instance()->GetWindowFrameProvider(
!host_supports_client_frame_shadow_, frame_->IsMaximized());

UpdateButtonImages();
LayoutButtons();

Expand Down

0 comments on commit 8d5adb9

Please sign in to comment.