[PATCH gtk+] wayland: Attach buffer before committing

Scott Moreau oreaus at gmail.com
Sat Mar 16 09:36:57 PDT 2013


Pushed to gh next.

On Sun, Mar 10, 2013 at 10:55 AM, Scott Moreau <oreaus at gmail.com> wrote:
> With recent changes in attach semantics, we always need to attach before
> committing. This fixes the problem with wayland gtk clients not updating
> surface contents correctly since latest changes regarding attach.
> ---
>  gdk/wayland/gdkwindow-wayland.c |    7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
> index 6f7e744..00b0c54 100644
> --- a/gdk/wayland/gdkwindow-wayland.c
> +++ b/gdk/wayland/gdkwindow-wayland.c
> @@ -324,13 +324,6 @@ gdk_wayland_window_attach_image (GdkWindow *window)
>    if (GDK_WINDOW_DESTROYED (window))
>      return;
>
> -  /* The "drawn to" Cairo surface is the same as the Cairo surface from which
> -   * we are driving the buffer for the Wayland surface. Therefore we don't
> -   * need to do anything here
> -   */
> -  if (impl->server_surface == impl->cairo_surface)
> -    return;
> -
>    /* The wayland surface is attached to a buffer that is from the old "drawn
>     * to" surface. Unref the surface and restore the state.
>     */
> --
> 1.7.10.4
>


More information about the wayland-devel mailing list