diff options
| author | tslil clingman <tslil@posteo.de> | 2022-10-09 21:43:28 +0200 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.de> | 2022-10-10 22:09:29 +0200 |
| commit | a31463d097e2b964801f11ed0b6ba40e43691583 (patch) | |
| tree | 851a8d93d7fc4030235af3a48a123c5aaaf07417 /monsterwm.c | |
| parent | 32ccd7d35d8ec246b9081028a928d0934b28ee1d (diff) | |
tweak status (output current desktop even if no windows)
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ? '*' : ' '); } } |
