Revert "Make gapps work with column layout"
This reverts commit d5b301e51c
.
This commit is contained in:
parent
8026f9f03b
commit
7e87953ef3
16
dwm.c
16
dwm.c
@ -1994,19 +1994,19 @@ col(Monitor *m) {
|
|||||||
if(n == 0)
|
if(n == 0)
|
||||||
return;
|
return;
|
||||||
if(n > m->nmaster)
|
if(n > m->nmaster)
|
||||||
mw = m->nmaster ? m->ww * m->mfact : 0;
|
mw = m->nmaster ? m->ww * m->mfact : 0;
|
||||||
else
|
else
|
||||||
mw = m->ww - m->gappx;
|
mw = m->ww;
|
||||||
for(i =0, x = y = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) {
|
for(i = x = y = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) {
|
||||||
if(i < m->nmaster) {
|
if(i < m->nmaster) {
|
||||||
w = (mw - x) / (MIN(n, m->nmaster)-i) - m->gappx;
|
w = (mw - x) / (MIN(n, m->nmaster)-i);
|
||||||
resize(c, x + m->wx + m->gappx, m->wy + m->gappx, w - (2*c->bw) - (2*m->gappx), m->wh - ((2*c->bw) + (2*m->gappx)), False);
|
resize(c, x + m->wx, m->wy, w - (2*c->bw), m->wh - (2*c->bw), False);
|
||||||
x += WIDTH(c) + m->gappx;
|
x += WIDTH(c);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
h = (m->wh - y) / (n - i);
|
h = (m->wh - y) / (n - i);
|
||||||
resize(c, x + m->wx + m->gappx, m->wy + y, m->ww - x - (2*c->bw) - (2*m->gappx), h - (2*c->bw), False);
|
resize(c, x + m->wx, m->wy + y, m->ww - x - (2*c->bw), h - (2*c->bw), False);
|
||||||
y += HEIGHT(c) + m->gappx;
|
y += HEIGHT(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user