Commit: bb7e9cab2aa2f2ec8c1e1b3faf74ddc77a52b655
Parent: 1c1f1c17d8bef7186d6cab06bcc87042b2fc4762
Author: Randy Palamar
Date: Sat, 3 Apr 2021 20:51:50 -0600
update all blocks which share a signal before redrawing
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/status.c b/status.c
@@ -69,12 +69,11 @@ sighandler(int signo, siginfo_t *info, void *context)
struct Block *b;
signo -= SIGRTMIN;
- for (b = blks; b->fn; b++) {
+ for (b = blks; b->fn; b++)
if (b->signal == signo)
updateblock(b);
- if (dirty)
- updatestatus();
- }
+ if (dirty)
+ updatestatus();
}
static void