wayland/actor-surface: Set opaque region even without X11 client support

A `#ifdef` macro wrapped too much making opaque regions no longer being
set if mutter would be compiled without X11 client support.

Fixes: 6e818c8c38 ("build: Allow disabling xwayland")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3022>
This commit is contained in:
Jonas Ådahl 2023-05-25 12:48:22 +02:00 committed by Marge Bot
parent b5900dd97a
commit e829862249

View File

@ -230,6 +230,7 @@ meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor
#ifdef HAVE_XWAYLAND #ifdef HAVE_XWAYLAND
if (!META_IS_XWAYLAND_SURFACE (surface_role)) if (!META_IS_XWAYLAND_SURFACE (surface_role))
#endif
{ {
if (!meta_shaped_texture_has_alpha (stex)) if (!meta_shaped_texture_has_alpha (stex))
{ {
@ -253,7 +254,6 @@ meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor
meta_surface_actor_set_opaque_region (surface_actor, NULL); meta_surface_actor_set_opaque_region (surface_actor, NULL);
} }
} }
#endif
meta_shaped_texture_set_transform (stex, surface->buffer_transform); meta_shaped_texture_set_transform (stex, surface->buffer_transform);