Merge branch 'master' of https://github.com/kronikpillow/dwm into kronikpillow-master

This commit is contained in:
Luke Smith
2020-04-14 20:49:10 -04:00
3 changed files with 128 additions and 67 deletions

18
dwm.c
View File

@@ -1226,16 +1226,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