Chris pointed me to the fact, that the window geoms calculation can be done once for each monitor, so I applied this remark
This commit is contained in:
parent
508922b90d
commit
954db46bac
3
dwm.c
3
dwm.c
|
@ -1724,12 +1724,13 @@ tile(void) {
|
||||||
for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
|
for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) {
|
|
||||||
/* window geoms */
|
/* window geoms */
|
||||||
mw = (n == 1) ? m->waw : m->mwfact * m->waw;
|
mw = (n == 1) ? m->waw : m->mwfact * m->waw;
|
||||||
th = (n > 1) ? m->wah / (n - 1) : 0;
|
th = (n > 1) ? m->wah / (n - 1) : 0;
|
||||||
if(n > 1 && th < bh)
|
if(n > 1 && th < bh)
|
||||||
th = m->wah;
|
th = m->wah;
|
||||||
|
|
||||||
|
for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) {
|
||||||
if(j == 0) { /* master */
|
if(j == 0) { /* master */
|
||||||
nx = m->wax;
|
nx = m->wax;
|
||||||
ny = m->way;
|
ny = m->way;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user