1
0
Fork 0

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:
Michel Dänzer 2024-07-02 19:39:27 +02:00 committed by Michel Dänzer
parent 92d60dbb08
commit 041a404ba0

View file

@ -286,8 +286,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);
#ifdef HAVE_XWAYLAND
if (!META_IS_XWAYLAND_SURFACE (actor_surface))
#endif
{
if (priv->actor && meta_surface_actor_is_frozen (priv->actor)) if (priv->actor && meta_surface_actor_is_frozen (priv->actor))
return; return;
}
actor_surface_class->sync_actor_state (actor_surface); actor_surface_class->sync_actor_state (actor_surface);
} }