startup: Fix build with 'startup_notification=false'

https://gitlab.gnome.org/GNOME/mutter/merge_requests/958
This commit is contained in:
Christian Rauch 2019-12-04 23:28:09 +00:00 committed by Christian Rauch
parent 96e1883361
commit 9f50b2cef2

View File

@ -292,16 +292,22 @@ gboolean
meta_x11_startup_notification_handle_xevent (MetaX11Display *x11_display, meta_x11_startup_notification_handle_xevent (MetaX11Display *x11_display,
XEvent *xevent) XEvent *xevent)
{ {
#ifdef HAVE_STARTUP_NOTIFICATION
MetaX11StartupNotification *x11_sn = x11_display->startup_notification; MetaX11StartupNotification *x11_sn = x11_display->startup_notification;
if (!x11_sn) if (!x11_sn)
return FALSE; return FALSE;
return sn_display_process_event (x11_sn->sn_display, xevent); return sn_display_process_event (x11_sn->sn_display, xevent);
#else
return FALSE;
#endif
} }
#ifdef HAVE_STARTUP_NOTIFICATION
typedef void (* SetAppIdFunc) (SnLauncherContext *context, typedef void (* SetAppIdFunc) (SnLauncherContext *context,
const char *app_id); const char *app_id);
#endif
gchar * gchar *
meta_x11_startup_notification_launch (MetaX11Display *x11_display, meta_x11_startup_notification_launch (MetaX11Display *x11_display,