mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
barmodules: refactoring updatebarpos
This commit is contained in:
parent
ff72f80029
commit
b5165a1c8f
5
dwm.c
5
dwm.c
@ -3492,10 +3492,7 @@ updatebarpos(Monitor *m)
|
|||||||
bar->bx = m->mx + x_pad;
|
bar->bx = m->mx + x_pad;
|
||||||
bar->bw = m->ww - 2 * x_pad;
|
bar->bw = m->ww - 2 * x_pad;
|
||||||
bar->bh = bh;
|
bar->bh = bh;
|
||||||
if (bar->topbar)
|
bar->by = (bar->topbar ? m->wy - bh : m->wy + m->wh);
|
||||||
bar->by = m->wy - bh;
|
|
||||||
else
|
|
||||||
bar->by = m->wy + m->wh;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user