fixed the tile() issue with xpdf
authorAnselm R Garbe <garbeam@gmail.com>
Sun, 01 Jun 2008 17:51:22 +0100
changeset 1252 d4528eea6e0d
parent 1251 58dc2070a79a
child 1253 81b40dd1b766
fixed the tile() issue with xpdf
dwm.c
--- a/dwm.c	Sun Jun 01 17:41:15 2008 +0100
+++ b/dwm.c	Sun Jun 01 17:51:22 2008 +0100
@@ -1442,13 +1442,13 @@
 	/* master */
 	c = nexttiled(clients);
 	mw = mfact * ww;
-	resize(c, wx, wy, ((n == 1) ? ww : mw) - 2 * c->bw, wh - 2 * c->bw, resizehints);
+	resize(c, wx, wy, (n == 1 ? ww : mw) - 2 * c->bw, wh - 2 * c->bw, resizehints);
 
 	if(--n == 0)
 		return;
 
 	/* tile stack */
-	x = (wx + mw > c->x + c->w) ? c->x + c->w + 2 * c->bw : ww - mw;
+	x = (wx + mw > c->x + c->w) ? c->x + c->w + 2 * c->bw : wx + mw;
 	y = wy;
 	w = (wx + mw > c->x + c->w) ? wx + ww - x : ww - mw;
 	h = wh / n;