From d123a5267080fdc1101cbd634d6d18983870e479 Mon Sep 17 00:00:00 2001 From: Matt Coffin Date: Thu, 8 Feb 2024 18:12:11 +0100 Subject: [PATCH] Fix build with DRM backend disabled --- include/sway/server.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sway/server.h b/include/sway/server.h index adb62cda7..afd92de92 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -3,13 +3,16 @@ #include #include #include +#include #include #include #include #include #include #include +#if WLR_HAS_DRM_BACKEND #include +#endif #include #include #include @@ -91,8 +94,10 @@ struct sway_server { struct wl_listener xdg_decoration; struct wl_list xdg_decorations; // sway_xdg_decoration::link +#if WLR_HAS_DRM_BACKEND struct wlr_drm_lease_v1_manager *drm_lease_manager; struct wl_listener drm_lease_request; +#endif struct wlr_pointer_constraints_v1 *pointer_constraints; struct wl_listener pointer_constraint;