> patch -d subprojects/wlroots/ -p1 -i ../../0005-wlroots-x11-confine-pointer.patch
patching file backend/x11/output.c
patch: **** malformed patch at line 33: + XCB_NONE, /* confine_to = in which window should the cursor stay */
Applying the patch manually gives a compile error:
[193/302] Compiling C object subprojects/wlroots/libwlroots.so.12.p/backend_x11_output.c.o
FAILED: subprojects/wlroots/libwlroots.so.12.p/backend_x11_output.c.o
ccache cc -Isubprojects/wlroots/libwlroots.so.12.p -Isubprojects/wlroots -I../subprojects/wlroots -Isubprojects/wlroots/include -I../subprojects/wlroots/include -Isubprojects/wlroots/protocol -Isubprojects/wlroots/render/gles2/shaders -Isubprojects/wlroots/render/vulkan/shaders -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -DWLR_USE_UNSTABLE -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../subprojects/wlroots/= -fPIC -MD -MQ subprojects/wlroots/libwlroots.so.12.p/backend_x11_output.c.o -MF subprojects/wlroots/libwlroots.so.12.p/backend_x11_output.c.o.d -o subprojects/wlroots/libwlroots.so.12.p/backend_x11_output.c.o -c ../subprojects/wlroots/backend/x11/output.c
../subprojects/wlroots/backend/x11/output.c: In function ‘wlr_x11_output_create’:
../subprojects/wlroots/backend/x11/output.c:681:17: error: variable ‘cursor’ set but not used [-Werror=unused-but-set-variable]
681 | xcb_cursor_t cursor;
| ^~~~~~
cc1: all warnings being treated as errors
[206/302] Compiling C object subprojects/wlroots/libwlroots.so.12.p/types_scene_wlr_scene.c.o
ninja: build stopped: subcommand failed.```
Applying the patch manually gives a compile error: