diff options
author | KronikPillow <kronikpillow@gmail.com> | 2020-04-14 13:11:34 +0200 |
---|---|---|
committer | KronikPillow <kronikpillow@gmail.com> | 2020-04-14 13:11:34 +0200 |
commit | 707881dd36aa6856c8eaaa81f90c0338289b9c91 (patch) | |
tree | b46fe18fcaf31f236878ab818c73fec85a4c5de8 /dwm.c | |
parent | ad82ceb532c27c7d8c63d6d2efcf2381ed74c853 (diff) |
updated vanitygaps with latest fixes from original author
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1275,16 +1275,16 @@ maprequest(XEvent *e) void monocle(Monitor *m) { - unsigned int n = 0; - Client *c; - - for (c = m->clients; c; c = c->next) - if (ISVISIBLE(c)) - n++; - if (n > 0) /* override layout symbol */ - snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); - for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); + unsigned int n; + int oh, ov, ih, iv; + Client *c; + + getgaps(m, &oh, &ov, &ih, &iv, &n); + + if (n > 0) /* override layout symbol */ + snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); + for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) + resize(c, m->wx + ov, m->wy + oh, m->ww - 2 * c->bw - 2 * ov, m->wh - 2 * c->bw - 2 * oh, 0); } void |