mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
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:
parent
7c4f4c6f36
commit
239195c1d1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user