Adding monoclesymbol patch
parent
2de0c0e307
commit
8c768b21e1
@ -1,14 +1,18 @@
|
|||||||
void
|
void
|
||||||
monocle(Monitor *m)
|
monocle(Monitor *m)
|
||||||
{
|
{
|
||||||
|
#if !MONOCLESYMBOL_PATCH
|
||||||
unsigned int n = 0;
|
unsigned int n = 0;
|
||||||
|
#endif // MONOCLESYMBOL_PATCH
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
|
#if !MONOCLESYMBOL_PATCH
|
||||||
for (c = m->clients; c; c = c->next)
|
for (c = m->clients; c; c = c->next)
|
||||||
if (ISVISIBLE(c))
|
if (ISVISIBLE(c))
|
||||||
n++;
|
n++;
|
||||||
if (n > 0) /* override layout symbol */
|
if (n > 0) /* override layout symbol */
|
||||||
snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
|
snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
|
||||||
|
#endif // MONOCLESYMBOL_PATCH
|
||||||
for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
|
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);
|
resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue