mirror of
https://github.com/brl/mutter.git
synced 2025-08-05 08:04:50 +00:00
wayland/surface: Rename "should_cache_state" to "is_synchronized"
Also remove the stale meta_wayland_surface_is_effectively_synchronized prototype. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1880>
This commit is contained in:

committed by
Michel Dänzer

parent
e7d589d45b
commit
a99198de83
@@ -1023,7 +1023,7 @@ meta_wayland_surface_commit (MetaWaylandSurface *surface)
|
||||
* 2) Its mode changes from synchronized to desynchronized and its parent
|
||||
* surface is in effective desynchronized mode.
|
||||
*/
|
||||
if (meta_wayland_surface_should_cache_state (surface))
|
||||
if (meta_wayland_surface_is_synchronized (surface))
|
||||
{
|
||||
ensure_cached_state (surface);
|
||||
|
||||
@@ -1985,24 +1985,24 @@ meta_wayland_surface_get_window (MetaWaylandSurface *surface)
|
||||
}
|
||||
|
||||
static gboolean
|
||||
meta_wayland_surface_role_should_cache_state (MetaWaylandSurfaceRole *surface_role)
|
||||
meta_wayland_surface_role_is_synchronized (MetaWaylandSurfaceRole *surface_role)
|
||||
{
|
||||
MetaWaylandSurfaceRoleClass *klass;
|
||||
|
||||
klass = META_WAYLAND_SURFACE_ROLE_GET_CLASS (surface_role);
|
||||
if (klass->should_cache_state)
|
||||
return klass->should_cache_state (surface_role);
|
||||
if (klass->is_synchronized)
|
||||
return klass->is_synchronized (surface_role);
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_wayland_surface_should_cache_state (MetaWaylandSurface *surface)
|
||||
meta_wayland_surface_is_synchronized (MetaWaylandSurface *surface)
|
||||
{
|
||||
if (!surface->role)
|
||||
return FALSE;
|
||||
|
||||
return meta_wayland_surface_role_should_cache_state (surface->role);
|
||||
return meta_wayland_surface_role_is_synchronized (surface->role);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user