wayland/actor-surface: Don't bail for Xwayland surfaces
Thawing Xwayland surfaces don't hit meta_window_actor_wayland_set_frozen, so we need to sync actor state for them here. v2: * Guard META_IS_XWAYLAND_SURFACE by HAVE_XWAYLAND, fixes Wayland-only build. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3557 Fixes:ec5444f541
("wayland/actor-surface: Don't sync actor state for frozen actors") Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3862> (cherry picked from commit041a404ba0
)
This commit is contained in:
parent
7515316395
commit
b09c1d3bfa
1 changed files with 7 additions and 2 deletions
|
@ -292,8 +292,13 @@ meta_wayland_actor_surface_sync_actor_state (MetaWaylandActorSurface *actor_surf
|
||||||
MetaWaylandActorSurfacePrivate *priv =
|
MetaWaylandActorSurfacePrivate *priv =
|
||||||
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
||||||
|
|
||||||
if (priv->actor && meta_surface_actor_is_frozen (priv->actor))
|
#ifdef HAVE_XWAYLAND
|
||||||
return;
|
if (!META_IS_XWAYLAND_SURFACE (actor_surface))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
if (priv->actor && meta_surface_actor_is_frozen (priv->actor))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
actor_surface_class->sync_actor_state (actor_surface);
|
actor_surface_class->sync_actor_state (actor_surface);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue