diff options
Diffstat (limited to 'wlmaker/no-x11-backend.patch')
| -rw-r--r-- | wlmaker/no-x11-backend.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/wlmaker/no-x11-backend.patch b/wlmaker/no-x11-backend.patch new file mode 100644 index 0000000..8b9feb5 --- /dev/null +++ b/wlmaker/no-x11-backend.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | --- a/b/src/backend/output.c 2026-02-21 14:39:37.962224134 +0000 | ||
| 2 | +++ b/src/backend/output.c 2026-02-21 14:39:50.693224298 +0000 | ||
| 3 | @@ -31,7 +31,10 @@ | ||
| 4 | #include <wayland-util.h> | ||
| 5 | #define WLR_USE_UNSTABLE | ||
| 6 | #include <wlr/backend/wayland.h> | ||
| 7 | +#include <wlr/config.h> | ||
| 8 | +#if WLR_HAS_X11_BACKEND | ||
| 9 | #include <wlr/backend/x11.h> | ||
| 10 | +#endif | ||
| 11 | #include <wlr/render/allocator.h> | ||
| 12 | #include <wlr/types/wlr_output.h> | ||
| 13 | #include <wlr/types/wlr_scene.h> | ||
| 14 | @@ -142,11 +145,13 @@ | ||
| 15 | // cursor coordinates well. Force it to 'Normal'. | ||
| 16 | enum wl_output_transform transformation = | ||
| 17 | attr_ptr->transformation; | ||
| 18 | +#if WLR_HAS_X11_BACKEND | ||
| 19 | if (wlr_output_is_x11(wlr_output_ptr) && | ||
| 20 | transformation != WL_OUTPUT_TRANSFORM_NORMAL) { | ||
| 21 | bs_log(BS_WARNING, "X11 backend: Transformation changed to 'Normal'."); | ||
| 22 | transformation = WL_OUTPUT_TRANSFORM_NORMAL; | ||
| 23 | } | ||
| 24 | +#endif | ||
| 25 | wlr_output_state_set_transform(&state, transformation); | ||
| 26 | |||
| 27 | // Set modes for backends that have them. | ||
| 28 | @@ -169,7 +174,10 @@ | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 32 | - if ((wlr_output_is_x11(wlr_output_ptr) || | ||
| 33 | + if (( | ||
| 34 | +#if WLR_HAS_X11_BACKEND | ||
| 35 | + wlr_output_is_x11(wlr_output_ptr) || | ||
| 36 | +#endif | ||
| 37 | wlr_output_is_wl(wlr_output_ptr)) | ||
| 38 | && 0 < width && 0 < height) { | ||
| 39 | bs_log(BS_INFO, "Overriding output dimensions to %"PRIu32"x%"PRIu32, | ||