this makes sure the issue mentioned by sander e1315fd4
Anselm R. Garbe · 2006-09-05 18:04 1 file(s) · +8 −2
view.c +8 −2
317 317
	if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
318 318
		return;
319 319
320 -
	if((c = sel) == getnext(clients))
321 -
		for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
320 +
	/* this is somewhat tricky, it asserts to only zoom tiled clients */
321 +
	for(c = clients; c && c->isfloat; c = getnext(c->next));
322 +
	if(c) {
323 +
		if(c == sel)
324 +
			for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
325 +
		else
326 +
			c = sel;
327 +
	}
322 328
	if(!c)
323 329
		return;
324 330
	detach(c);