view.c
changeset 486 8d564b9e3cd4
parent 485 759c9d9a959d
child 487 be4f90c03582
equal deleted inserted replaced
485:759c9d9a959d 486:8d564b9e3cd4
    48 	XEvent ev;
    48 	XEvent ev;
    49 	if((c->ismax = !c->ismax)) {
    49 	if((c->ismax = !c->ismax)) {
    50 		c->rx = c->x; c->x = sx;
    50 		c->rx = c->x; c->x = sx;
    51 		c->ry = c->y; c->y = bh;
    51 		c->ry = c->y; c->y = bh;
    52 		c->rw = c->w; c->w = sw;
    52 		c->rw = c->w; c->w = sw;
    53 		c->rh = c->h; c->h = sh - bh;
    53 		c->rh = c->h; c->h = sh - bh - 2;
    54 	}
    54 	}
    55 	else {
    55 	else {
    56 		c->x = c->rx;
    56 		c->x = c->rx;
    57 		c->y = c->ry;
    57 		c->y = c->ry;
    58 		c->w = c->rw;
    58 		c->w = c->rw;
   206 	Client *c;
   206 	Client *c;
   207 
   207 
   208 	for(n = 0, c = clients; c; c = c->next)
   208 	for(n = 0, c = clients; c; c = c->next)
   209 		if(isvisible(c) && !c->isfloat)
   209 		if(isvisible(c) && !c->isfloat)
   210 			n++;
   210 			n++;
   211 	if(!sel || sel->isfloat || n < 2 || (arrange != dotile))
   211 	if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
   212 		return;
   212 		return;
   213 
   213 
   214 	if(sel == getnext(clients)) {
   214 	if(sel == getnext(clients)) {
   215 		if(mw + arg->i > sw - 100 || mw + arg->i < 100)
   215 		if(mw + arg->i > sw - 100 || mw + arg->i < 100)
   216 			return;
   216 			return;
   303 	}
   303 	}
   304 
   304 
   305 	for(n = 0, c = clients; c; c = c->next)
   305 	for(n = 0, c = clients; c; c = c->next)
   306 		if(isvisible(c) && !c->isfloat)
   306 		if(isvisible(c) && !c->isfloat)
   307 			n++;
   307 			n++;
   308 	if(n < 2 || (arrange != dotile))
   308 	if(n < 2 || (arrange == dofloat))
   309 		return;
   309 		return;
   310 
   310 
   311 	if((c = sel) == nexttiled(clients))
   311 	if((c = sel) == nexttiled(clients))
   312 		if(!(c = nexttiled(c->next)))
   312 		if(!(c = nexttiled(c->next)))
   313 			return;
   313 			return;