mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-06 07:15:31 -04:00
allow gaps in monocle layout if requested
This commit is contained in:
parent
4299a2f759
commit
ff6efd2fe9
2 changed files with 6 additions and 1 deletions
6
dwl.c
6
dwl.c
|
|
@ -1728,8 +1728,12 @@ monocle(Monitor *m)
|
|||
wl_list_for_each(c, &clients, link) {
|
||||
if (!VISIBLEON(c, m) || c->isfloating || c->isfullscreen)
|
||||
continue;
|
||||
resize(c, m->w, 0);
|
||||
n++;
|
||||
if (!monoclegaps)
|
||||
resize(c, m->w, 0);
|
||||
else
|
||||
resize(c, (struct wlr_box){.x = m->w.x + gappoh, .y = m->w.y + gappov,
|
||||
.width = m->w.width - 2 * gappoh, .height = m->w.height - 2 * gappov}, 0);
|
||||
}
|
||||
if (n)
|
||||
snprintf(m->ltsymbol, LENGTH(m->ltsymbol), "[%d]", n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue