[gtk+] wayland: Ack the configure immediately



commit 38445e63264711fd5aaee37c57a12689f8dc0f12
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue May 13 16:21:11 2014 -0400

    wayland: Ack the configure immediately

 gdk/wayland/gdkwindow-wayland.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 9a66ad0..87fa392 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -113,8 +113,6 @@ struct _GdkWindowImplWayland
 
   cairo_surface_t *cairo_surface;
 
-  int32_t next_attach_serial;
-
   gchar *title;
 
   /* Time of most recent user interaction. */
@@ -522,12 +520,6 @@ gdk_wayland_window_attach_image (GdkWindow *window)
   if (GDK_WINDOW_DESTROYED (window))
     return;
 
-  if (impl->next_attach_serial > 0)
-    {
-      xdg_surface_ack_configure (impl->xdg_surface, impl->next_attach_serial);
-      impl->next_attach_serial = 0;
-    }
-
   /* Attach this new buffer to the surface */
   wl_surface_attach (impl->surface,
                      _gdk_wayland_shm_surface_get_wl_buffer (impl->cairo_surface),
@@ -852,7 +844,7 @@ xdg_surface_configure (void               *data,
     }
 
   _gdk_set_window_state (window, new_state);
-  impl->next_attach_serial = serial;
+  xdg_surface_ack_configure (xdg_surface, serial);
 }
 
 static void


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