From b5b9fa338811092900560a226c282a2f6c1f9d8e Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Fri, 7 Mar 2014 23:43:26 +0800 Subject: [PATCH] Fix segfault in fullscreen layout when a window with transient(s) unmap. --- spectrwm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 1.7.10.4