JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
minor bugfix
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 4d26a82..0071379 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -96,7 +96,8 @@ typedef struct {
        const char *symbol;
        void (*arrange)(void);
        Bool isfloating;
-} Layout;
+} Layout; /* TODO: layout should keep an auxilliary pointer to its Geometry,
+            instead of having all those layout specific vars globally */
 
 typedef struct {
        const char *prop;
@@ -408,6 +409,7 @@ configurenotify(XEvent *e) {
 
        if(ev->window == root && (ev->width != sw || ev->height != sh)) {
                setgeoms();
+               updatebarpos();
                arrange();
        }
 }
@@ -1405,7 +1407,7 @@ setdefaultgeoms(void) {
        mh = wh;
 
        /* tile area */
-       tx = wx;
+       tx = mx + mw;
        ty = wy;
        tw = ww - mw;
        th = wh;
@@ -1415,8 +1417,6 @@ setdefaultgeoms(void) {
        moy = wy;
        mow = ww;
        moh = wh;
-
-       updatebarpos();
 }
 
 void