From 2712555c7178ace33cfdf809537aa4f567994ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 2 Mar 2021 21:40:13 +0100 Subject: [PATCH] display: Don't include sn.h from display-private.h It has some annoying macro requirement to not nag about API stability; try to limit its exposure. Part-of: --- src/core/display-private.h | 4 ---- src/tests/test-utils.c | 1 + src/x11/meta-startup-notification-x11.c | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/display-private.h b/src/core/display-private.h index 6008de05f..220fd4da0 100644 --- a/src/core/display-private.h +++ b/src/core/display-private.h @@ -31,10 +31,6 @@ #include #include -#ifdef HAVE_STARTUP_NOTIFICATION -#include -#endif - #include "clutter/clutter.h" #include "core/keybindings-private.h" #include "core/meta-gesture-tracker-private.h" diff --git a/src/tests/test-utils.c b/src/tests/test-utils.c index 0f4c16510..b0e7022c2 100644 --- a/src/tests/test-utils.c +++ b/src/tests/test-utils.c @@ -23,6 +23,7 @@ #include #include +#include #include "core/display-private.h" #include "core/window-private.h" diff --git a/src/x11/meta-startup-notification-x11.c b/src/x11/meta-startup-notification-x11.c index 70aa2ac0f..42be6d580 100644 --- a/src/x11/meta-startup-notification-x11.c +++ b/src/x11/meta-startup-notification-x11.c @@ -20,6 +20,7 @@ #include "meta-startup-notification-x11.h" #include +#include #include "core/display-private.h" #include "core/startup-notification-private.h"