diff options
author | June McEnroe | 2022-02-20 14:49:17 -0500 |
---|---|---|
committer | June McEnroe | 2022-02-20 14:49:17 -0500 |
commit | a281bdc5e1700e25022536a5482b1fb41ece4219 (patch) | |
tree | d56b6b620de45055cbd53f0d10098df13c26a661 /window.c | |
parent | 012fd67539cdf1c13edbb6047253e168d1814cd3 (diff) |
Show indicator in status when window has pending input
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/window.c b/window.c index 0395542..ee0911f 100644 --- a/window.c +++ b/window.c @@ -164,7 +164,7 @@ static void statusUpdate(void) { wmove(uiStatus, 0, 0); for (uint num = 0; num < count; ++num) { const struct Window *window = windows[num]; - if (num != show && !window->scroll) { + if (num != show && !window->scroll && !inputPending(window->id)) { if (window->heat < Warm) continue; if (window->mute && window->heat < Hot) continue; } @@ -181,15 +181,17 @@ static void statusUpdate(void) { ); if (window->mark && window->unreadWarm) { ptr = seprintf( - ptr, end, "\3%d+%d\3%d%s", + ptr, end, "\3%d+%d\3%d ", (window->heat > Warm ? White : idColors[window->id]), - window->unreadWarm, idColors[window->id], - (window->scroll ? "" : " ") + window->unreadWarm, idColors[window->id] ); } if (window->scroll) { ptr = seprintf(ptr, end, "~%d ", window->scroll); } + if (num != show && inputPending(window->id)) { + ptr = seprintf(ptr, end, "@ "); + } if (styleAdd(uiStatus, StyleDefault, buf) < 0) break; } wclrtoeol(uiStatus); |