tile.c
changeset 976 7c117df5d202
parent 962 8d1df2c37229
child 979 1f295ac327ef
equal deleted inserted replaced
975:1c30ac0aee7f 976:7c117df5d202
    44 	if(n > 1 && th < bh)
    44 	if(n > 1 && th < bh)
    45 		th = wah;
    45 		th = wah;
    46 
    46 
    47 	nx = wax;
    47 	nx = wax;
    48 	ny = way;
    48 	ny = way;
    49 	for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) {
    49 	for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next), i++) {
    50 		c->ismax = False;
    50 		c->ismax = False;
    51 		if(i == 0) { /* master */
    51 		if(i == 0) { /* master */
    52 			nw = mw - 2 * c->border;
    52 			nw = mw - 2 * c->border;
    53 			nh = wah - 2 * c->border;
    53 			nh = wah - 2 * c->border;
    54 		}
    54 		}
    64 				nh = th - 2 * c->border;
    64 				nh = th - 2 * c->border;
    65 		}
    65 		}
    66 		resize(c, nx, ny, nw, nh, False);
    66 		resize(c, nx, ny, nw, nh, False);
    67 		if(n > 1 && th != wah)
    67 		if(n > 1 && th != wah)
    68 			ny += nh + 2 * c->border;
    68 			ny += nh + 2 * c->border;
    69 		i++;
       
    70 	}
    69 	}
    71 }
    70 }
    72 
    71 
    73 void
    72 void
    74 zoom(const char *arg) {
    73 zoom(const char *arg) {