aboutsummaryrefslogtreecommitdiffstats
path: root/dwmblocks.c
diff options
context:
space:
mode:
authorEthan Marshall <ethan@ethanjmarshall.co.uk>2022-08-10 23:25:04 +0100
committerEthan Marshall <ethan@ethanjmarshall.co.uk>2022-08-10 23:26:42 +0100
commit1cab753316cb7737e9cbfdea06df6df636a999f9 (patch)
tree2a6d62629155ba36b35d10cb2864e19073a92708 /dwmblocks.c
parentMerge pull request #104 from ethanv2/freeze (diff)
downloaddwmblocks-1cab753316cb7737e9cbfdea06df6df636a999f9.tar.gz
dwmblocks-1cab753316cb7737e9cbfdea06df6df636a999f9.tar.bz2
dwmblocks-1cab753316cb7737e9cbfdea06df6df636a999f9.tar.xz
dwmblocks-1cab753316cb7737e9cbfdea06df6df636a999f9.tar.zst
dwmblocks-1cab753316cb7737e9cbfdea06df6df636a999f9.zip
Fix bar clicking
Freeze v1 inadvertently blocked the signal which was delivered when clicking. Do not block this signal while redrawing. Instead, only explicitly block real time signals.
Diffstat (limited to '')
-rw-r--r--dwmblocks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index fb56d95..c2e1477 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -185,9 +185,9 @@ void setroot()
{
/* block all signals until after root updated */
sigset_t new, old;
- sigfillset(&new);
- sigdelset(&new, SIGINT);
- sigdelset(&new, SIGTERM);
+ for (unsigned int i = SIGRTMIN; i <= SIGRTMAX; i++) {
+ sigaddset(&new, i);
+ }
if (sigprocmask(SIG_SETMASK, &new, &old) < 0) {
perror("sigset");