shell: don't assign output for surface of type none
authorAnder Conselvan de Oliveira <conselvan2@gmail.com>
Thu, 23 Feb 2012 11:29:25 +0000 (13:29 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 23 Feb 2012 21:06:06 +0000 (16:06 -0500)
If map is called with a surface of type none it will call
weston_surface_assign_output, even though the surface will
not be mapped.

src/shell.c

index 3d5dfd9..8628462 100644 (file)
@@ -1427,6 +1427,7 @@ map(struct weston_shell *base, struct weston_surface *surface,
                do_configure = 0;
                break;
        case SHELL_SURFACE_NONE:
+               do_configure = 0;
                break;
        default:
                /* everything else just below the panel */