From edb593141920dbb41076f8c2eb351e476a5435ea Mon Sep 17 00:00:00 2001
From: Ashish Kumar Yadav <ashishkumar.yadav@students.iiserpune.ac.in>
Date: Wed, 29 Jul 2020 22:37:58 +0530
Subject: [PATCH] Removed a trivial bug

---
 dwmblocks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwmblocks.c b/dwmblocks.c
index 6f96a66..06f823c 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -191,8 +191,8 @@ statusloop()
                 for (Block *current = blocks; current->pathu; current++)
                         if (current->interval > 0 && i % current->interval == 0)
                                 getcmd(current, NILL);
-                sigprocmask(SIG_UNBLOCK, &blocksigmask, NULL);
                 setroot();
+                sigprocmask(SIG_UNBLOCK, &blocksigmask, NULL);
                 sleep(SLEEPINTERVAL);
                 i += SLEEPINTERVAL;
         }