mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
config: add [csd].hide-when-maximized=yes|no
When enabled, the CSD titlebar will be hidden when the window is maximized. Closes #1019
This commit is contained in:
parent
979f48a62f
commit
fbcebd4f1c
6 changed files with 19 additions and 2 deletions
|
|
@ -1768,7 +1768,8 @@ bool
|
|||
wayl_win_csd_titlebar_visible(const struct wl_window *win)
|
||||
{
|
||||
return win->csd_mode == CSD_YES &&
|
||||
!win->is_fullscreen;
|
||||
!win->is_fullscreen &&
|
||||
!(win->is_maximized && win->term->conf->csd.hide_when_maximized);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue