comparison view.c @ 548:3d23384eb5ab

applied sanders max size fix
author arg@mig29
date Fri, 27 Oct 2006 12:05:47 +0200
parents 13ef0d218c67
children fd1061442711
comparison
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;