X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.c;h=0071379da2ff58a5ab26a10f9847b4aae7229514;hb=69439715c09ac36fe94f3cb7b1ed87149fc5ecff;hp=4d26a82e27e762d3d90698c3a89bc23a007995a2;hpb=02673538bc98daeb2fe31d3667b5f3e0884e4831;p=dwm.git diff --git a/dwm.c b/dwm.c index 4d26a82..0071379 100644 --- 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