mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
startup: Fix build with 'startup_notification=false'
https://gitlab.gnome.org/GNOME/mutter/merge_requests/958
This commit is contained in:
parent
96e1883361
commit
9f50b2cef2
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user