From e829862249f7a2cb6c0651281c66ffeb5726f850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 25 May 2023 12:48:22 +0200 Subject: [PATCH] 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: --- src/wayland/meta-wayland-actor-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-actor-surface.c b/src/wayland/meta-wayland-actor-surface.c index 29f284af5..1b6b1bf00 100644 --- a/src/wayland/meta-wayland-actor-surface.c +++ b/src/wayland/meta-wayland-actor-surface.c @@ -230,6 +230,7 @@ meta_wayland_actor_surface_real_sync_actor_state (MetaWaylandActorSurface *actor #ifdef HAVE_XWAYLAND if (!META_IS_XWAYLAND_SURFACE (surface_role)) +#endif { 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); } } -#endif meta_shaped_texture_set_transform (stex, surface->buffer_transform);