applied sanders max size fix 2b13e746
arg@mig29 · 2006-10-27 12:05 2 file(s) · +5 −1
client.c +1 −1
233 233
	settags(c, getclient(trans));
234 234
	if(!c->isfloat)
235 235
		c->isfloat = trans
236 -
			|| (c->maxw && c->minw &&
236 +
			|| (c->maxw && c->minw && c->maxh && c->minh &&
237 237
				c->maxw == c->minw && c->maxh == c->minh);
238 238
	resizetitle(c);
239 239
	if(clients)
view.c +4 −0
44 44
static void
45 45
togglemax(Client *c) {
46 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 52
	if((c->ismax = !c->ismax)) {
49 53
		c->rx = c->x; c->x = sx;