shell: Create view for lock surface
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Oct 2013 22:49:45 +0000 (15:49 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Oct 2013 22:49:45 +0000 (15:49 -0700)
Nothing created the view for the lock surface and weston would crash
when trying to display it.

https://bugs.freedesktop.org/show_bug.cgi?id=70873

src/shell.c

index 994805f..9a9127b 100644 (file)
@@ -2828,6 +2828,7 @@ desktop_shell_set_lock_surface(struct wl_client *client,
        wl_signal_add(&surface->destroy_signal,
                      &shell->lock_surface_listener);
 
+       weston_view_create(surface);
        surface->configure = lock_surface_configure;
        surface->configure_private = shell;
 }