summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-10 11:57:01 +0200
committerbakkeby <[email protected]>2020-09-10 11:57:01 +0200
commitf4a6866e8c281bf9098d167fa6032e2eb19b87cd (patch)
tree83069943b37d7404f4258fe343faa1ded37d6a4c
parent4fd42ec164733cf1fded577053aa6bebde932efc (diff)
downloaddwm-flexipatch-f4a6866e8c281bf9098d167fa6032e2eb19b87cd.tar.gz
dwm-flexipatch-f4a6866e8c281bf9098d167fa6032e2eb19b87cd.zip
barmodules: skip if widthfunc is NULL
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 465dc07..df05d07 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1587,7 +1587,7 @@ drawbarwin(Bar *bar)
drw_rect(drw, lx, bar->borderpx, lw, bar->bh - 2 * bar->borderpx, 1, 1);
for (r = 0; r < LENGTH(barrules); r++) {
br = &barrules[r];
- if (br->bar != bar->idx || !bar->widthfunc || (br->monitor == 'A' && bar->mon != selmon))
+ if (br->bar != bar->idx || !br->widthfunc || (br->monitor == 'A' && bar->mon != selmon))
continue;
if (br->monitor != 'A' && br->monitor != -1 && br->monitor != bar->mon->index)
continue;