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>
This commit is contained in:
parent
92d60dbb08
commit
041a404ba0
1 changed files with 7 additions and 2 deletions
|
@ -286,8 +286,13 @@ meta_wayland_actor_surface_sync_actor_state (MetaWaylandActorSurface *actor_surf
|
|||
MetaWaylandActorSurfacePrivate *priv =
|
||||
meta_wayland_actor_surface_get_instance_private (actor_surface);
|
||||
|
||||
if (priv->actor && meta_surface_actor_is_frozen (priv->actor))
|
||||
return;
|
||||
#ifdef HAVE_XWAYLAND
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue