mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
build: Fix building without Wayland
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2400>
This commit is contained in:
parent
5e5480e620
commit
03929ca01f
@ -36,6 +36,8 @@ struct _MetaCompositorNative
|
|||||||
G_DEFINE_TYPE (MetaCompositorNative, meta_compositor_native,
|
G_DEFINE_TYPE (MetaCompositorNative, meta_compositor_native,
|
||||||
META_TYPE_COMPOSITOR_SERVER)
|
META_TYPE_COMPOSITOR_SERVER)
|
||||||
|
|
||||||
|
#ifdef HAVE_WAYLAND
|
||||||
|
|
||||||
static MetaRendererView *
|
static MetaRendererView *
|
||||||
get_window_view (MetaRenderer *renderer,
|
get_window_view (MetaRenderer *renderer,
|
||||||
MetaWindow *window)
|
MetaWindow *window)
|
||||||
@ -153,6 +155,7 @@ done:
|
|||||||
surface);
|
surface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_WAYLAND */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_compositor_native_before_paint (MetaCompositor *compositor,
|
meta_compositor_native_before_paint (MetaCompositor *compositor,
|
||||||
@ -160,7 +163,9 @@ meta_compositor_native_before_paint (MetaCompositor *compositor,
|
|||||||
{
|
{
|
||||||
MetaCompositorClass *parent_class;
|
MetaCompositorClass *parent_class;
|
||||||
|
|
||||||
|
#ifdef HAVE_WAYLAND
|
||||||
maybe_assign_primary_plane (compositor);
|
maybe_assign_primary_plane (compositor);
|
||||||
|
#endif
|
||||||
|
|
||||||
parent_class = META_COMPOSITOR_CLASS (meta_compositor_native_parent_class);
|
parent_class = META_COMPOSITOR_CLASS (meta_compositor_native_parent_class);
|
||||||
parent_class->before_paint (compositor, stage_view);
|
parent_class->before_paint (compositor, stage_view);
|
||||||
|
Loading…
Reference in New Issue
Block a user