aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-01 17:51:22 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-01 17:51:22 +0100
commitfc578c57e4c265cefff0a55a0ca74172a84e757d (patch)
tree6e4893865865c616fdd5a8d40a16284f5a587076 /dwm.c
parentc8eaab21b697247e2bc07ce9b8c7dfdd94e87af9 (diff)
downloaddwm-fc578c57e4c265cefff0a55a0ca74172a84e757d.tar.gz
dwm-fc578c57e4c265cefff0a55a0ca74172a84e757d.tar.bz2
dwm-fc578c57e4c265cefff0a55a0ca74172a84e757d.zip
fixed the tile() issue with xpdf
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 90ce40d..8930100 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1442,13 +1442,13 @@ tile(void) {
/* 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;