fix segfault
This commit is contained in:
parent
f9f6b84e0f
commit
640b3c9621
|
@ -5720,10 +5720,10 @@ updatebarpos(Monitor *m)
|
||||||
int y_pad = vp;
|
int y_pad = vp;
|
||||||
int x_pad = sp;
|
int x_pad = sp;
|
||||||
|
|
||||||
m->wx += selmon->insetx;
|
m->wx += m->insetx;
|
||||||
m->wy += selmon->insety;
|
m->wy += m->insety;
|
||||||
m->ww -= selmon->insetw + selmon->insetx;
|
m->ww -= m->insetw + m->insetx;
|
||||||
m->wh -= selmon->inseth + selmon->insety;
|
m->wh -= m->inseth + m->insety;
|
||||||
|
|
||||||
for (bar = m->bar; bar; bar = bar->next) {
|
for (bar = m->bar; bar; bar = bar->next) {
|
||||||
bar->bx = m->mx + x_pad;
|
bar->bx = m->mx + x_pad;
|
||||||
|
|
Loading…
Reference in a new issue