xwm: Fix crash when we don't have a transient_for window
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Jun 2012 19:40:18 +0000 (15:40 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Jun 2012 19:40:57 +0000 (15:40 -0400)
src/xwayland/window-manager.c

index da4a4af..ac72458 100644 (file)
@@ -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;
        }