X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.c;h=3b7de9691f6f0f8e17a37ad01209993b706d362c;hb=6b79f3f3266923292b0ad029c5e240349d9afa39;hp=6ef2ab2e8b914080f8631d8e959d935a5c72399a;hpb=7eb26288fc6aa4c8850f41d475230b1619df622b;p=dwm.git diff --git a/dwm.c b/dwm.c index 6ef2ab2..3b7de96 100644 --- a/dwm.c +++ b/dwm.c @@ -1432,8 +1432,7 @@ setup(void) { sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); bh = dc.font.height + 2; - - /* update geometry */ + mfact = MFACT; updategeom(); /* init atoms */ @@ -1722,12 +1721,11 @@ updategeom(void) { /* window area geometry */ wx = sx; - wy = sy; + wy = sy + bh; ww = sw; - sh = sh - bh; + wh = sh - bh; /* master area geometry */ - mfact = MFACT; mx = wx; my = wy; mw = mfact * ww; @@ -1813,7 +1811,7 @@ updatewmhints(Client *c) { void view(const char *arg) { - seltags ^= 1; + seltags ^= 1; /* toggle sel tagset */ memset(tagset[seltags], (NULL == arg), TAGSZ); tagset[seltags][idxoftag(arg)] = True; arrange();