[PATCH gtk+] wayland: Attach buffer before committing

Scott Moreau oreaus at gmail.com
Sun Mar 10 09:55:23 PDT 2013


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