updated vanitygaps with latest fixes from original author

This commit is contained in:
KronikPillow
2020-04-14 13:11:34 +02:00
parent ad82ceb532
commit 707881dd36
3 changed files with 128 additions and 67 deletions

18
dwm.c
View File

@@ -1275,16 +1275,16 @@ maprequest(XEvent *e)
void
monocle(Monitor *m)
{
unsigned int n = 0;
Client *c;
unsigned int n;
int oh, ov, ih, iv;
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);
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