dwm-monoclesymbol-6.2.diff - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
dwm-monoclesymbol-6.2.diff (936B)
---
1 From 3700a18554e035722682712ac68176166e47e0f2 Mon Sep 17 00:00:00 2001
2 From: aleks <aleks.stier@icloud.com>
3 Date: Mon, 8 Apr 2019 22:17:10 +0200
4 Subject: [PATCH] Don't display number of open clients in monocle-mode
5
6 Always display the the monocle-symbol as defined in config.h if the
7 monocle-layout is activated. Do not display the number of open clients
8 in the current tag.
9 ---
10 dwm.c | 6 ------
11 1 file changed, 6 deletions(-)
12
13 diff --git a/dwm.c b/dwm.c
14 index 4465af1..3b98778 100644
15 --- a/dwm.c
16 +++ b/dwm.c
17 @@ -1103,14 +1103,8 @@ maprequest(XEvent *e)
18 void
19 monocle(Monitor *m)
20 {
21 - unsigned int n = 0;
22 Client *c;
23
24 - for (c = m->clients; c; c = c->next)
25 - if (ISVISIBLE(c))
26 - n++;
27 - if (n > 0) /* override layout symbol */
28 - snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
29 for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
30 resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
31 }
32 --
33 2.21.0
34