From c388abe1e322cbef9df9cb94a12a48665e04ba31 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 28 Jan 2024 10:35:56 +0100 Subject: [PATCH] core/context: Make notify_ready vfunc optional As it is used only in a X11 build for session management See next commit Part-of: --- src/core/meta-context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/meta-context.c b/src/core/meta-context.c index 7332f0209..8e7df79b8 100644 --- a/src/core/meta-context.c +++ b/src/core/meta-context.c @@ -202,7 +202,8 @@ meta_context_notify_ready (MetaContext *context) g_return_if_fail (priv->state == META_CONTEXT_STATE_STARTED || priv->state == META_CONTEXT_STATE_RUNNING); - META_CONTEXT_GET_CLASS (context)->notify_ready (context); + if (META_CONTEXT_GET_CLASS (context)->notify_ready) + META_CONTEXT_GET_CLASS (context)->notify_ready (context); } const char *