Skip to content

Commit

Permalink
fix: use WindowFrameProvider::SetMaximized in ClientFrameViewLinux
Browse files Browse the repository at this point in the history
This tells the WindowFrameProvider to render the decorations in maximized
mode, fixing empty space around maximized windows with GTK.
  • Loading branch information
msizanoen1 committed Jul 19, 2022
1 parent f1e3621 commit 993dfbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/ui/views/client_frame_view_linux.cc
Expand Up @@ -114,6 +114,7 @@ void ClientFrameViewLinux::Init(NativeWindowViews* window,

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

UpdateWindowTitle();

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

frame_provider_->SetMaximized(frame_->IsMaximized());

UpdateButtonImages();
LayoutButtons();

Expand Down

0 comments on commit 993dfbb

Please sign in to comment.