fixed the tile() issue with xpdf
This commit is contained in:
parent
c8eaab21b6
commit
fc578c57e4
1 changed files with 2 additions and 2 deletions
4
dwm.c
4
dwm.c
|
@ -1442,13 +1442,13 @@ tile(void) {
|
||||||
/* master */
|
/* master */
|
||||||
c = nexttiled(clients);
|
c = nexttiled(clients);
|
||||||
mw = mfact * ww;
|
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)
|
if(--n == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* tile stack */
|
/* 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;
|
y = wy;
|
||||||
w = (wx + mw > c->x + c->w) ? wx + ww - x : ww - mw;
|
w = (wx + mw > c->x + c->w) ? wx + ww - x : ww - mw;
|
||||||
h = wh / n;
|
h = wh / n;
|
||||||
|
|
Loading…
Reference in a new issue