--- a/b/src/backend/output.c	2026-02-21 14:39:37.962224134 +0000
+++ b/src/backend/output.c	2026-02-21 14:39:50.693224298 +0000
@@ -31,7 +31,10 @@
 #include <wayland-util.h>
 #define WLR_USE_UNSTABLE
 #include <wlr/backend/wayland.h>
+#include <wlr/config.h>
+#if WLR_HAS_X11_BACKEND
 #include <wlr/backend/x11.h>
+#endif
 #include <wlr/render/allocator.h>
 #include <wlr/types/wlr_output.h>
 #include <wlr/types/wlr_scene.h>
@@ -142,11 +145,13 @@
     // cursor coordinates well. Force it to 'Normal'.
     enum wl_output_transform transformation =
         attr_ptr->transformation;
+#if WLR_HAS_X11_BACKEND
     if (wlr_output_is_x11(wlr_output_ptr) &&
         transformation != WL_OUTPUT_TRANSFORM_NORMAL) {
         bs_log(BS_WARNING, "X11 backend: Transformation changed to 'Normal'.");
         transformation = WL_OUTPUT_TRANSFORM_NORMAL;
     }
+#endif
     wlr_output_state_set_transform(&state, transformation);
 
     // Set modes for backends that have them.
@@ -169,7 +174,10 @@
         }
     }
 
-    if ((wlr_output_is_x11(wlr_output_ptr) ||
+    if ((
+#if WLR_HAS_X11_BACKEND
+         wlr_output_is_x11(wlr_output_ptr) ||
+#endif
          wlr_output_is_wl(wlr_output_ptr))
         && 0 < width && 0 < height) {
         bs_log(BS_INFO, "Overriding output dimensions to %"PRIu32"x%"PRIu32,
