diff options
| author | bakkeby <[email protected]> | 2020-09-10 09:52:46 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-10 09:52:46 +0200 |
| commit | ed0e503a6ba33927b0aa1f06690ec8724cc6a552 (patch) | |
| tree | 109ca23e3832b49fe0cff0f0ae088a09d06f6284 | |
| parent | c257e2e390e40f45a07686afe7676f5a32e691a8 (diff) | |
| download | dwm-flexipatch-ed0e503a6ba33927b0aa1f06690ec8724cc6a552.tar.gz dwm-flexipatch-ed0e503a6ba33927b0aa1f06690ec8724cc6a552.zip | |
barmodules: skip if widthfunc is NULL
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
