From cd80f107b34de152df85a8275277b8df98a44f1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 15 Jun 2012 15:40:18 -0400 Subject: [PATCH] xwm: Fix crash when we don't have a transient_for window --- src/xwayland/window-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c index da4a4af..ac72458 100644 --- a/src/xwayland/window-manager.c +++ b/src/xwayland/window-manager.c @@ -1323,7 +1323,7 @@ xserver_map_shell_surface(struct weston_wm *wm, &shell_client); /* ICCCM 4.1.1 */ - if (!window->override_redirect) { + if (!window->override_redirect || !window->transient_for) { shell_interface->set_toplevel(window->shsurf); return; } -- 2.7.4