You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
355 B
15 lines
355 B
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);
|
|
}
|
|
|
|
|