tile.c
changeset 1209 c2dc0bd92158
parent 1206 2914cb30c2d4
child 1210 225aa5566f0e
--- a/tile.c	Sat May 17 14:51:12 2008 +0100
+++ b/tile.c	Mon May 19 12:34:54 2008 +0100
@@ -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 @@
 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] == '+')
@@ -66,8 +63,8 @@
 
 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);
 }
@@ -89,6 +86,9 @@
 
 void
 updatetilegeom(void) {
+#ifdef TILEGEOM /* define your own if you are Xinerama user */
+	TILEGEOM
+#else
 	/* master area geometry */
 	mx = wx;
 	my = wy;
@@ -100,4 +100,5 @@
 	ty = wy;
 	tw = ww - mw;
 	th = wh;
+#endif
 }