diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-15 18:12:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-16 09:45:50 +0000 |
| commit | fbcebd4f1c32f30bfedbad6a108acf6900ea955f (patch) | |
| tree | c56b8d7827f088bfd62f5b0851a76b305a509254 /wayland.c | |
| parent | render: 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.c | 3 |
1 files changed, 2 insertions, 1 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 |
