ssd: allow hiding titlebar on maximization

<core disableMaximizedServerDecor="yes"> hides the titlebar when a window
is maximized.

Co-authored-by: @CosmicFusion
This commit is contained in:
tokyo4j 2025-08-21 13:56:37 +09:00 committed by Johan Malm
parent 943f5751ee
commit 888dbedeed
6 changed files with 25 additions and 0 deletions

View file

@ -1660,6 +1660,10 @@ undecorate(struct view *view)
bool
view_titlebar_visible(struct view *view)
{
if (view->maximized == VIEW_AXIS_BOTH
&& rc.hide_maximized_window_titlebar) {
return false;
}
return view->ssd_mode == LAB_SSD_MODE_FULL;
}