From a31463d097e2b964801f11ed0b6ba40e43691583 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sun, 9 Oct 2022 21:43:28 +0200 Subject: tweak status (output current desktop even if no windows) --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monsterwm.c') diff --git a/monsterwm.c b/monsterwm.c index 85c0b75..61f10d5 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -417,7 +417,7 @@ void write_status(void) { printf("%%{l}"); for (int w = 0, i = 0; i < DESKTOPS; i++, w = 0, urgent = False) { for (d = &desktops[i], c = d->head; c; urgent |= c->isurgn, ++w, c = c->next); - if (w>0) { + if (w>0 || i == currdeskidx) { printf("[%c%d%c] ", urgent ? '!' : ' ', i, i == currdeskidx ? '*' : ' '); } } -- cgit v1.3.1