[mutter] wayland: Rename commit_attached_surface to commit_attached_buffer



commit 239195c1d1c7d3bba0531adaac1dafc75291f83f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Apr 11 23:13:17 2014 -0700

    wayland: Rename commit_attached_surface to commit_attached_buffer
    
    The buffer is the thing that's attached here, not the surface.

 src/wayland/meta-wayland-surface.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 3a2018f..5ddc6b3 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -146,8 +146,8 @@ ensure_buffer_texture (MetaWaylandBuffer *buffer)
 }
 
 static gboolean
-commit_attached_surface (MetaWaylandSurface             *surface,
-                         MetaWaylandDoubleBufferedState *pending)
+commit_attached_buffer (MetaWaylandSurface             *surface,
+                        MetaWaylandDoubleBufferedState *pending)
 {
   /* wl_surface.attach */
   if (pending->newly_attached && surface->buffer != pending->buffer)
@@ -163,7 +163,7 @@ static void
 cursor_surface_commit (MetaWaylandSurface             *surface,
                        MetaWaylandDoubleBufferedState *pending)
 {
-  if (commit_attached_surface (surface, pending))
+  if (commit_attached_buffer (surface, pending))
     meta_wayland_seat_update_cursor_surface (surface->compositor->seat);
 }
 
@@ -175,7 +175,7 @@ actor_surface_commit (MetaWaylandSurface             *surface,
   MetaWaylandBuffer *buffer = pending->buffer;
   gboolean buffer_changed;
 
-  buffer_changed = commit_attached_surface (surface, pending);
+  buffer_changed = commit_attached_buffer (surface, pending);
 
   if (buffer_changed && buffer)
     {


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