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 id no empty space aroung the window.
  • Loading branch information
msizanoen1 committed Jul 20, 2022
1 parent f40b7b4 commit 9713e08
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 @@ -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();

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

frame_provider_ = ui::LinuxUi::instance()->GetWindowFrameProvider(
!host_supports_client_frame_shadow_, frame_->IsMaximized());

UpdateButtonImages();
LayoutButtons();

Expand Down

0 comments on commit 9713e08

Please sign in to comment.