From 159ecf756abf44d7f8c9e4e7b56ea0458478c866 Mon Sep 17 00:00:00 2001 From: Linux User Date: Wed, 28 Sep 2022 01:11:37 +0000 Subject: [PATCH] del trash --- dwm.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dwm.c b/dwm.c index fb0c194..620a427 100644 --- a/dwm.c +++ b/dwm.c @@ -2047,17 +2047,15 @@ updatebars(void) void updatebarpos(Monitor *m) { - m->wy = m->my; // no - m->wh = m->mh; // no - m->wh -= bh * m->showbar * 2; // no - m->wy = m->showbar ? m->wy + bh + vpb : m->wy; // no + m->wy = m->my; + m->wh = m->mh; + m->wh -= bh * m->showbar * 2; + m->wy = m->showbar ? m->wy + bh + vpb : m->wy; if (m->showbar) { -// m->wh = m->wh - gappx - bh; 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 = m->topbar ? m->wy : m->wy; } else { m->by = -bh - vpb; m->eby = -bh + vpb;