On Wed, Mar 27, 2013 at 06:39:28PM +0100, Rafal Mielniczuk wrote:
> We do this by checking if launcher_sock != -1
> 
> This fixes https://bugs.freedesktop.org/show_bug.cgi?id=60926

That looks good, committed.

Kristian

>  src/compositor-drm.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index fa21495..3d200dd 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c
> @@ -2166,6 +2166,13 @@ drm_compositor_create(struct wl_display *display,
>               goto err_base;
>       }
>  
> +     /* Check if we run drm-backend using weston-launch */
> +     if (ec->base.launcher_sock == -1) {
> +             weston_log("fatal: drm backend should be run "
> +                        "using weston-launch binary\n");
> +             goto err_compositor;
> +     }
> +
>       ec->udev = udev_new();
>       if (ec->udev == NULL) {
>               weston_log("failed to initialize udev context\n");
> -- 
> 1.8.2
> 
> _______________________________________________
> wayland-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to