X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.anselm.h;h=aef59476a2e5ca156bd0c10773cf1ce26b3f2de3;hb=c19d4b2930379d0b966a1f082f9db2f3011bea76;hp=0e0d3be3dce0b445d9fe135d48c0adee130ec94c;hpb=95eae7b9d25602cf5fb25ecbc9d92ead8005c1f8;p=dwm.git diff --git a/config.anselm.h b/config.anselm.h index 0e0d3be..aef5947 100644 --- a/config.anselm.h +++ b/config.anselm.h @@ -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 }, }; @@ -58,36 +58,35 @@ setanselmgeoms(void) { mx = wx; my = wy; mw = 1280; - mh = 800; + mh = 800 - bh; /* tile area */ tx = 1280; ty = 0; - tw = ww - 1280; - th = wh; + tw = sw - 1280; + th = sh; /* monocle area */ mox = mx; moy = my; 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); } void anselmgeoms(const char *arg) { setgeoms = setanselmgeoms; - arrange(); + setgeoms(); + updatebarpos(); + setlayout("[]|"); } void defgeoms(const char *arg) { setgeoms = setdefaultgeoms; - arrange(); + setgeoms(); + updatebarpos(); + setlayout("[]="); } /* key definitions */