view.c
changeset 548 3d23384eb5ab
parent 535 13ef0d218c67
child 549 fd1061442711
equal deleted inserted replaced
547:de3fd5271408 548:3d23384eb5ab
    42 }
    42 }
    43 
    43 
    44 static void
    44 static void
    45 togglemax(Client *c) {
    45 togglemax(Client *c) {
    46 	XEvent ev;
    46 	XEvent ev;
       
    47 		
       
    48 	if (x->maxw && x->minw && x->maxh && x->minh &&
       
    49 			x->maxw == x->minw && x->maxh == x->minh)
       
    50 		return;
    47 
    51 
    48 	if((c->ismax = !c->ismax)) {
    52 	if((c->ismax = !c->ismax)) {
    49 		c->rx = c->x; c->x = sx;
    53 		c->rx = c->x; c->x = sx;
    50 		c->ry = c->y; c->y = bh;
    54 		c->ry = c->y; c->y = bh;
    51 		c->rw = c->w; c->w = sw - 2 * BORDERPX;
    55 		c->rw = c->w; c->w = sw - 2 * BORDERPX;