wayland: Rename commit_attached_surface to commit_attached_buffer

The buffer is the thing that's attached here, not the surface.
This commit is contained in:
Jasper St. Pierre 2014-04-11 23:13:17 -07:00
parent 7c4f4c6f36
commit 239195c1d1

View File

@ -146,7 +146,7 @@ ensure_buffer_texture (MetaWaylandBuffer *buffer)
}
static gboolean
commit_attached_surface (MetaWaylandSurface *surface,
commit_attached_buffer (MetaWaylandSurface *surface,
MetaWaylandDoubleBufferedState *pending)
{
/* wl_surface.attach */
@ -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)
{