[PATCH] compositor-wayland: Create border after creating the OpenGL context.

Kristian Høgsberg hoegsberg at gmail.com
Thu Oct 4 08:57:27 PDT 2012


On Wed, Oct 03, 2012 at 06:02:22PM +0200, John Kåre Alsaker wrote:

Yes, that works better, thanks.

Kristian

> ---
>  src/compositor-wayland.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
> index d665641..05f21c2 100644
> --- a/src/compositor-wayland.c
> +++ b/src/compositor-wayland.c
> @@ -843,13 +843,14 @@ wayland_compositor_create(struct wl_display *display,
>  	c->base.destroy = wayland_destroy;
>  	c->base.restore = wayland_restore;
>  
> -	create_border(c);
>  	if (wayland_compositor_create_output(c, width, height) < 0)
>  		goto err_display;
>  
>  	if (gles2_renderer_init(&c->base) < 0)
>  		goto err_display;
>  
> +	create_border(c);
> +
>  	loop = wl_display_get_event_loop(c->base.wl_display);
>  
>  	fd = wl_display_get_fd(c->parent.wl_display, update_event_mask, c);
> -- 
> 1.7.12.2
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list