mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-05 00:00:18 +00:00
barmodules: skip if widthfunc is NULL
This commit is contained in:
parent
4fd42ec164
commit
f4a6866e8c
2
dwm.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user