applied Connors aesthitic buf fix in tile(), thanks

This commit is contained in:
garbeam@gmail.com 2011-07-20 18:45:40 +00:00
parent 6288c44697
commit d6670a800d

4
dwm.c
View file

@ -1662,9 +1662,9 @@ tile(Monitor *m) {
if(--n == 0) if(--n == 0)
return; return;
/* tile stack */ /* tile stack */
x = (m->wx + mw > c->x + c->w) ? c->x + c->w + 2 * c->bw : m->wx + mw; x = (m->wx > c->x) ? c->x + mw + 2 * c->bw : m->wx + mw;
y = m->wy; y = m->wy;
w = (m->wx + mw > c->x + c->w) ? m->wx + m->ww - x : m->ww - mw; w = (m->wx > c->x) ? m->wx + m->ww - x : m->ww - mw;
h = m->wh / n; h = m->wh / n;
if(h < bh) if(h < bh)
h = m->wh; h = m->wh;