we lose track of highstack somewhere, so recompute it before we need it.

fixes a crash reported by christian neukirchen.  ok okan
This commit is contained in:
tedu 2011-02-13 17:25:20 +00:00
parent cd23316a72
commit 0884d38e3b

View File

@ -108,6 +108,11 @@ group_show(struct screen_ctx *sc, struct group_ctx *gc)
u_int i;
int lastempty = -1;
gc->highstack = 0;
TAILQ_FOREACH(cc, &gc->clients, group_entry) {
if (cc->stackingorder > gc->highstack)
gc->highstack = cc->stackingorder;
}
winlist = (Window *) xcalloc(sizeof(*winlist), (gc->highstack + 1));
/*