barmodules: refactoring updatebarpos

This commit is contained in:
bakkeby 2020-07-21 11:49:59 +02:00
parent ff72f80029
commit b5165a1c8f

5
dwm.c
View File

@ -3492,10 +3492,7 @@ updatebarpos(Monitor *m)
bar->bx = m->mx + x_pad;
bar->bw = m->ww - 2 * x_pad;
bar->bh = bh;
if (bar->topbar)
bar->by = m->wy - bh;
else
bar->by = m->wy + m->wh;
bar->by = (bar->topbar ? m->wy - bh : m->wy + m->wh);
}
}