dwm.c
changeset 1084 30802b8a0fb1
parent 1083 f07dd2c127c1
child 1085 9c4355f988f2
equal deleted inserted replaced
1083:f07dd2c127c1 1084:30802b8a0fb1
  1722 		Monitor *m = &monitors[i];
  1722 		Monitor *m = &monitors[i];
  1723 
  1723 
  1724 		for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
  1724 		for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
  1725 			n++;
  1725 			n++;
  1726 
  1726 
       
  1727 		/* window geoms */
       
  1728 		mw = (n == 1) ? m->waw : m->mwfact * m->waw;
       
  1729 		th = (n > 1) ? m->wah / (n - 1) : 0;
       
  1730 		if(n > 1 && th < bh)
       
  1731 			th = m->wah;
       
  1732 
  1727 		for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) {
  1733 		for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) {
  1728 			/* window geoms */
       
  1729 			mw = (n == 1) ? m->waw : m->mwfact * m->waw;
       
  1730 			th = (n > 1) ? m->wah / (n - 1) : 0;
       
  1731 			if(n > 1 && th < bh)
       
  1732 				th = m->wah;
       
  1733 			if(j == 0) { /* master */
  1734 			if(j == 0) { /* master */
  1734 				nx = m->wax;
  1735 				nx = m->wax;
  1735 				ny = m->way;
  1736 				ny = m->way;
  1736 				nw = mw - 2 * c->border;
  1737 				nw = mw - 2 * c->border;
  1737 				nh = m->wah - 2 * c->border;
  1738 				nh = m->wah - 2 * c->border;