summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-10-04 22:51:42 +0200
committerbakkeby <[email protected]>2019-10-04 22:51:42 +0200
commit8c768b21e1955e751d3992adcc3c76ef9f49d82e (patch)
tree8400e2cebf768cde2eb4f77d3275ca39cfe3fd14 /patch
parent2de0c0e30758021f0e4fb4f734942a60e146c31e (diff)
downloaddwm-flexipatch-8c768b21e1955e751d3992adcc3c76ef9f49d82e.tar.gz
dwm-flexipatch-8c768b21e1955e751d3992adcc3c76ef9f49d82e.zip
Adding monoclesymbol patch
Diffstat (limited to 'patch')
-rw-r--r--patch/monocle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/patch/monocle.c b/patch/monocle.c
index 5d7a270..d132f44 100644
--- a/patch/monocle.c
+++ b/patch/monocle.c
@@ -1,14 +1,18 @@
void
monocle(Monitor *m)
{
+ #if !MONOCLESYMBOL_PATCH
unsigned int n = 0;
+ #endif // MONOCLESYMBOL_PATCH
Client *c;
+ #if !MONOCLESYMBOL_PATCH
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);
+ #endif // MONOCLESYMBOL_PATCH
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);
} \ No newline at end of file