build: Fix building without wayland headers

Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3046
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3471>
This commit is contained in:
Mart Raudsepp 2023-12-25 14:51:46 +02:00 committed by Marge Bot
parent cb794329e7
commit d7db784b54
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@
#include "backends/x11/nested/meta-cursor-renderer-x11-nested.h"
#include "backends/x11/nested/meta-renderer-x11-nested.h"
#ifdef HAVE_WAYLAND
#include "wayland/meta-wayland.h"
#endif
typedef struct _MetaBackendX11NestedPrivate
{

View File

@ -33,7 +33,6 @@
#include "backends/meta-virtual-monitor.h"
#include "backends/x11/cm/meta-backend-x11-cm.h"
#include "meta/meta-backend.h"
#include "wayland/meta-wayland.h"
#include "x11/session.h"
#ifdef HAVE_NATIVE_BACKEND
@ -42,6 +41,7 @@
#ifdef HAVE_WAYLAND
#include "backends/x11/nested/meta-backend-x11-nested.h"
#include "wayland/meta-wayland.h"
#endif
typedef struct _MetaContextMainOptions