From: Reginald Kennedy Date: Fri, 7 Mar 2014 15:43:26 +0000 (+0800) Subject: Fix segfault in fullscreen layout when a window with transient(s) unmap. X-Git-Tag: SPECTRWM_2_5_1~4 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/b5b9fa338811092900560a226c282a2f6c1f9d8e Fix segfault in fullscreen layout when a window with transient(s) unmap. --- diff --git a/spectrwm.c b/spectrwm.c index bafbc34..4d2128a 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -4960,8 +4960,7 @@ max_stack(struct workspace *ws, struct swm_geometry *g) } } - if (TRANS(win)) { - parent = find_window(win->transient); + if (TRANS(win) && (parent = find_window(win->transient))) { raise_window(parent); TAILQ_FOREACH(w, &ws->stack, stack_entry)