X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=dwm.c;h=6d3cf80bc77cc47949a5a7fd85b4f0d25453c1b8;hb=f2e98f48fb3cb7558d705ba581767caccb4ea7be;hp=4d26a82e27e762d3d90698c3a89bc23a007995a2;hpb=02673538bc98daeb2fe31d3667b5f3e0884e4831;p=dwm.git diff --git a/dwm.c b/dwm.c index 4d26a82..6d3cf80 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(); } } @@ -1415,8 +1417,6 @@ setdefaultgeoms(void) { moy = wy; mow = ww; moh = wh; - - updatebarpos(); } void