JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
minor fixes
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 6ef2ab2..d4fd0d5 100644 (file)
--- 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;