dwm.c
changeset 1252 d4528eea6e0d
parent 1251 58dc2070a79a
child 1253 81b40dd1b766
equal deleted inserted replaced
1251:58dc2070a79a 1252:d4528eea6e0d
  1440 		return;
  1440 		return;
  1441 
  1441 
  1442 	/* master */
  1442 	/* master */
  1443 	c = nexttiled(clients);
  1443 	c = nexttiled(clients);
  1444 	mw = mfact * ww;
  1444 	mw = mfact * ww;
  1445 	resize(c, wx, wy, ((n == 1) ? ww : mw) - 2 * c->bw, wh - 2 * c->bw, resizehints);
  1445 	resize(c, wx, wy, (n == 1 ? ww : mw) - 2 * c->bw, wh - 2 * c->bw, resizehints);
  1446 
  1446 
  1447 	if(--n == 0)
  1447 	if(--n == 0)
  1448 		return;
  1448 		return;
  1449 
  1449 
  1450 	/* tile stack */
  1450 	/* tile stack */
  1451 	x = (wx + mw > c->x + c->w) ? c->x + c->w + 2 * c->bw : ww - mw;
  1451 	x = (wx + mw > c->x + c->w) ? c->x + c->w + 2 * c->bw : wx + mw;
  1452 	y = wy;
  1452 	y = wy;
  1453 	w = (wx + mw > c->x + c->w) ? wx + ww - x : ww - mw;
  1453 	w = (wx + mw > c->x + c->w) ? wx + ww - x : ww - mw;
  1454 	h = wh / n;
  1454 	h = wh / n;
  1455 	if(h < bh)
  1455 	if(h < bh)
  1456 		h = wh;
  1456 		h = wh;