[PATCH xserver] xwayland: Attach buffer before committing

Daniel Stone daniel at fooishbar.org
Sat Mar 9 12:29:43 PST 2013


Hi,

On 9 March 2013 07:24, Scott Moreau <oreaus at gmail.com> wrote:

> diff --git a/hw/xfree86/xwayland/xwayland.c
> b/hw/xfree86/xwayland/xwayland.c
> index d97f4ee..f59bfe4 100644
> --- a/hw/xfree86/xwayland/xwayland.c
> +++ b/hw/xfree86/xwayland/xwayland.c
> @@ -344,6 +344,9 @@ void xwl_screen_post_damage(struct xwl_screen
> *xwl_screen)
>                               box->x2 - box->x1 + 1,
>                               box->y2 - box->y1 + 1);
>         }
> +       wl_surface_attach(xwl_window->surface,
> +                         xwl_window->buffer,
> +                         0, 0);
>         wl_surface_commit(xwl_window->surface);
>         DamageEmpty(xwl_window->damage);
>      }
>

I think this is just a broken compositor as a result of the patches to not
attach on every commit though; I guess we should take damage into account
when we process that, doing something akin to TexSubImage if possible.  The
protocol seems to explicitly allow for damage without an explicit attach.

Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130309/3e51cafe/attachment.html>


More information about the wayland-devel mailing list