summaryrefslogtreecommitdiffstats
path: root/wlmaker/no-x11-backend.patch
blob: 8b9feb5c366ad8b68356a9b8cf94999bf58a6d94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- 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,