From 03929ca01f69ebf5ad756453437a4ee05602c52a Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 3 May 2022 16:47:02 +0200 Subject: [PATCH] build: Fix building without Wayland Part-of: --- 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 6a046060a..84e7a75d8 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);