X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=tile.c;h=6a582822596d91b021cbbaf04b0885933db6f273;hb=71365a524f67235024de7db277c63f8ac4f46569;hp=ab21ec9cf13b1c85228e9ca35f6ac9c4ac6ed810;hpb=a864a82b3460bbceda03709dfd9de34b19f9b8cf;p=dwm.git diff --git a/tile.c b/tile.c index ab21ec9..6a58282 100644 --- a/tile.c +++ b/tile.c @@ -1,5 +1,4 @@ /* See LICENSE file for copyright and license details. */ -double mfact = MFACT; int bx, by, bw, bh, blw, mx, my, mw, mh, tx, ty, tw, th, wx, wy, ww, wh; void setmfact(const char *arg); @@ -11,10 +10,8 @@ void setmfact(const char *arg) { double d; - if(lt->arrange != tile) + if(!arg || lt->arrange != tile) return; - if(!arg) - mfact = MFACT; else { d = strtod(arg, NULL); if(arg[0] == '-' || arg[0] == '+') @@ -23,7 +20,7 @@ setmfact(const char *arg) { return; mfact = d; } - updategeom(); + updatetilegeom(); arrange(); } @@ -66,8 +63,8 @@ tile(void) { void tileresize(Client *c, int x, int y, int w, int h) { - resize(c, x, y, w, h, RESIZEHINTS); - if((RESIZEHINTS) && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w))) + resize(c, x, y, w, h, resizehints); + if(resizehints && ((c->h < bh) || (c->h > h) || (c->w < bh) || (c->w > w))) /* client doesn't accept size constraints */ resize(c, x, y, w, h, False); }