diff --git a/dwm-6.2/dwm.c b/dwm-6.2/dwm.c index 6109fbc..9a68794 100644 --- a/dwm-6.2/dwm.c +++ b/dwm-6.2/dwm.c @@ -667,7 +667,7 @@ configurenotify(XEvent *e) for (c = m->clients; c; c = c->next) if (c->isfullscreen) resizeclient(c, m->mx, m->my, m->mw, m->mh); - XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); + XMoveResizeWindow(dpy, m->barwin, m->wx + sp, m->by + vp, m->ww - 2 * sp, bh); } focus(NULL); arrange(NULL); @@ -1928,9 +1928,9 @@ setup(void) die("no fonts could be loaded."); lrpad = drw->fonts->h + horizpadbar; bh = drw->fonts->h + vertpadbar; - updategeom(); sp = sidepad; vp = (topbar == 1) ? vertpad : - vertpad; + updategeom(); /* init atoms */ utf8string = XInternAtom(dpy, "UTF8_STRING", False); @@ -1971,7 +1971,6 @@ setup(void) /* init bars */ updatebars(); updatestatus(); - updatebarpos(selmon); /* supporting window for NetWMCheck */ wmcheckwin = XCreateSimpleWindow(dpy, root, 0, 0, 1, 1, 0, 0, 0); XChangeProperty(dpy, wmcheckwin, netatom[NetWMCheck], XA_WINDOW, 32,