cleanup: Guard x11 headers includes

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3603>
This commit is contained in:
Bilal Elmoussaoui
2024-02-21 15:09:16 +01:00
parent b5cf16fa74
commit 3cc44b1f04
14 changed files with 20 additions and 12 deletions

View File

@ -29,18 +29,25 @@
#include <systemd/sd-login.h>
#endif
#include "backends/meta-monitor.h"
#include "backends/meta-monitor-manager-private.h"
#include "backends/meta-virtual-monitor.h"
#include "backends/x11/cm/meta-backend-x11-cm.h"
#include "meta/meta-backend.h"
#ifdef HAVE_X11
#include "backends/x11/cm/meta-backend-x11-cm.h"
#include "x11/session.h"
#endif
#ifdef HAVE_NATIVE_BACKEND
#include "backends/native/meta-backend-native.h"
#endif
#ifdef HAVE_WAYLAND
#if defined (HAVE_X11) && defined (HAVE_WAYLAND)
#include "backends/x11/nested/meta-backend-x11-nested.h"
#endif
#ifdef HAVE_WAYLAND
#include "wayland/meta-wayland.h"
#endif