[gtk+/gtk-3-8] wayland: Always attach buffer before committing



commit f9dd457b25c66bf86925369339766ceb9112a92c
Author: Scott Moreau <oreaus gmail com>
Date:   Sun Mar 10 10:51:01 2013 -0600

    wayland: Always attach buffer before committing
    
    With recent changes in attach semantics, we always need to attach before
    committing. Without this changes to the window contents to not get reflected
    in the content of the surface.
    
    Signed-off-by: Rob Bradford <rob linux intel com>
    
    Cherry picked to fix: https://bugzilla.gnome.org/show_bug.cgi?id=701341

 gdk/wayland/gdkwindow-wayland.c |    7 -------
 1 files changed, 0 insertions(+), 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.
    */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]