fix topbar

This commit is contained in:
Linux User 2022-09-28 01:26:00 +00:00
parent 159ecf756a
commit 0a4047f2aa
1 changed files with 2 additions and 1 deletions

3
dwm.c
View File

@ -2055,7 +2055,8 @@ updatebarpos(Monitor *m)
if (m->showbar) {
m->by = m->topbar ? m->wy - gappx - bh : m->wy + m->wh + gappx;
m->eby = m->topbar ? m->wy + m->wh + gappx - vpb * 2 : m->wy - gappx - bh - vpb * 2;
m->wh -= vpb * 2;
m->wy = topbar ? m->wy : m->wy - vpb * 2;
m->wh = topbar ? m->wh - vpb * 2 : m->wh + vpb * 2;
} else {
m->by = -bh - vpb;
m->eby = -bh + vpb;