aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-15 18:12:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-16 09:45:50 +0000
commitfbcebd4f1c32f30bfedbad6a108acf6900ea955f (patch)
treec56b8d7827f088bfd62f5b0851a76b305a509254 /wayland.c
parentrender: take (visible) CSD border size into account when setting initial size (diff)
config: add [csd].hide-when-maximized=yes|no
When enabled, the CSD titlebar will be hidden when the window is maximized. Closes #1019
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index 020ff914..c788849f 100644
--- a/wayland.c
+++ b/wayland.c
@@ -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