equal
deleted
inserted
replaced
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; |