JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
update
[dwm.git] / config.anselm.h
index 0e0d3be..990575d 100644 (file)
@@ -27,8 +27,8 @@ Rule rules[] = {
 
 Layout layouts[] = {
        /* symbol               function        isfloating */
-       { "[]=",                tilev,          False }, /* first entry is default */
-       { "[]|",                tileh,          False },
+       { "[]|",                tileh,          False }, /* first entry is default */
+       { "[]=",                tilev,          False },
        { "><>",                floating,       True },
        { "[M]",                monocle,        True },
 };
@@ -72,22 +72,21 @@ setanselmgeoms(void) {
        mow = mw;
        moh = mh;
 
-       if(dc.drawable != 0)
-               XFreePixmap(dpy, dc.drawable);
-       dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
-       XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
+       updatebarpos();
 }
 
 void
 anselmgeoms(const char *arg) {
        setgeoms = setanselmgeoms;
-       arrange();
+       setgeoms();
+       setlayout("[]|");
 }
 
 void
 defgeoms(const char *arg) {
        setgeoms = setdefaultgeoms;
-       arrange();
+       setgeoms();
+       setlayout("[]=");
 }
 
 /* key definitions */