summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-10 09:52:46 +0200
committerbakkeby <[email protected]>2020-09-10 09:52:46 +0200
commited0e503a6ba33927b0aa1f06690ec8724cc6a552 (patch)
tree109ca23e3832b49fe0cff0f0ae088a09d06f6284
parentc257e2e390e40f45a07686afe7676f5a32e691a8 (diff)
downloaddwm-flexipatch-ed0e503a6ba33927b0aa1f06690ec8724cc6a552.tar.gz
dwm-flexipatch-ed0e503a6ba33927b0aa1f06690ec8724cc6a552.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 907b190..465dc07 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 || (br->monitor == 'A' && bar->mon != selmon))
+ if (br->bar != bar->idx || !bar->widthfunc || (br->monitor == 'A' && bar->mon != selmon))
continue;
if (br->monitor != 'A' && br->monitor != -1 && br->monitor != bar->mon->index)
continue;