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 da4a4afc712916de23ad76ae2d71bd023c701727..ac724583ae8497c0a131bd96d8abc47f9416cbe3 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;
        }