view.c
changeset 654 04734db9a219
parent 651 b9f4efd21473
child 656 c30805f6bb08
equal deleted inserted replaced
653:99bc71d78a95 654:04734db9a219
   300 		togglemax(sel);
   300 		togglemax(sel);
   301 		return;
   301 		return;
   302 	}
   302 	}
   303 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
   303 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
   304 		n++;
   304 		n++;
       
   305 
       
   306 	c = sel;
   305 	if(n <= nmaster || (arrange == dofloat))
   307 	if(n <= nmaster || (arrange == dofloat))
   306 		return;
   308 		pop(c);
   307 
   309 	else if(ismaster(sel)) {
   308 	if(ismaster((c = sel))) {
       
   309 		if(!(c = topofstack()))
   310 		if(!(c = topofstack()))
   310 			return;
   311 			return;
   311 		swap(c, sel);
   312 		swap(c, sel);
   312 		c = sel;
   313 		c = sel;
   313 	}
   314 	}