[mutter/bilelmoussaoui/fix-without-wayland-build] build: Fix building without Wayland




commit 03929ca01f69ebf5ad756453437a4ee05602c52a
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Tue May 3 16:47:02 2022 +0200

    build: Fix building without Wayland
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2400>

 src/compositor/meta-compositor-native.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/compositor/meta-compositor-native.c b/src/compositor/meta-compositor-native.c
index 6a046060a9..84e7a75d8b 100644
--- a/src/compositor/meta-compositor-native.c
+++ b/src/compositor/meta-compositor-native.c
@@ -36,6 +36,8 @@ struct _MetaCompositorNative
 G_DEFINE_TYPE (MetaCompositorNative, meta_compositor_native,
                META_TYPE_COMPOSITOR_SERVER)
 
+#ifdef HAVE_WAYLAND
+
 static MetaRendererView *
 get_window_view (MetaRenderer *renderer,
                  MetaWindow   *window)
@@ -153,6 +155,7 @@ done:
                           surface);
     }
 }
+#endif /* HAVE_WAYLAND */
 
 static void
 meta_compositor_native_before_paint (MetaCompositor   *compositor,
@@ -160,7 +163,9 @@ meta_compositor_native_before_paint (MetaCompositor   *compositor,
 {
   MetaCompositorClass *parent_class;
 
+#ifdef HAVE_WAYLAND
   maybe_assign_primary_plane (compositor);
+#endif
 
   parent_class = META_COMPOSITOR_CLASS (meta_compositor_native_parent_class);
   parent_class->before_paint (compositor, stage_view);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]