JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix segfault in fullscreen layout when a window with transient(s) unmap.
authorReginald Kennedy <rk@rejii.com>
Fri, 7 Mar 2014 15:43:26 +0000 (23:43 +0800)
committerReginald Kennedy <rk@rejii.com>
Fri, 7 Mar 2014 15:44:39 +0000 (23:44 +0800)
spectrwm.c

index bafbc34..4d2128a 100644 (file)
@@ -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)