startup/x11: Fix compiling without startup-notification

If startup_notification is disabled, linking against sn would fail

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2425>
This commit is contained in:
Bilal Elmoussaoui 2022-05-18 21:34:13 +00:00 committed by Marge Bot
parent bc9762eebb
commit b27234cfef

View File

@ -20,7 +20,6 @@
#include "meta-startup-notification-x11.h"
#include <gio/gdesktopappinfo.h>
#include <libsn/sn.h>
#include "core/display-private.h"
#include "core/startup-notification-private.h"
@ -29,6 +28,8 @@
#ifdef HAVE_STARTUP_NOTIFICATION
#include <libsn/sn.h>
enum
{
PROP_SEQ_X11_0,