From 132606e1330d8b6faf32077873b114c28df4f8fc Mon Sep 17 00:00:00 2001 From: A Frederick Christensen Date: Sun, 22 Feb 2026 18:56:17 -0600 Subject: [PATCH] add support for ext-image-copy-capture-v1 and ext-image-capture-source-v1 (wlroots!4545) --- Makefile | 4 ++++ dwl.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 578194f235980fb3d7c8cd1026447cf80d1f1773..3981fbbd71dde6ef5777ca839caf7cf6a19c8990 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ all: dwl dwl: dwl.o util.o $(CC) dwl.o util.o $(DWLCFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ dwl.o: dwl.c client.h config.h config.mk cursor-shape-v1-protocol.h \ + ext-image-copy-capture-v1-protocol.h \ pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h \ wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h util.o: util.c util.h @@ -33,6 +34,9 @@ WAYLAND_PROTOCOLS = `$(PKG_CONFIG) --variable=pkgdatadir wayland-protocols` cursor-shape-v1-protocol.h: $(WAYLAND_SCANNER) enum-header \ $(WAYLAND_PROTOCOLS)/staging/cursor-shape/cursor-shape-v1.xml $@ +ext-image-copy-capture-v1-protocol.h: + $(WAYLAND_SCANNER) enum-header \ + $(WAYLAND_PROTOCOLS)/staging/ext-image-copy-capture/ext-image-copy-capture-v1.xml $@ pointer-constraints-unstable-v1-protocol.h: $(WAYLAND_SCANNER) enum-header \ $(WAYLAND_PROTOCOLS)/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml $@ diff --git a/dwl.c b/dwl.c index 60e1e89884d77e498cfe2f074fd21f5fec0078aa..e3b11759f17a92e102290c222a38f90eafa71f6c 100644 --- a/dwl.c +++ b/dwl.c @@ -25,6 +25,8 @@ #include #include #include +#include +#include #include #include #include @@ -2524,6 +2526,8 @@ setup(void) wlr_data_device_manager_create(dpy); wlr_export_dmabuf_manager_v1_create(dpy); wlr_screencopy_manager_v1_create(dpy); + wlr_ext_image_copy_capture_manager_v1_create(dpy, 1); + wlr_ext_output_image_capture_source_manager_v1_create(dpy, 1); wlr_data_control_manager_v1_create(dpy); wlr_ext_data_control_manager_v1_create(dpy, 1); wlr_primary_selection_v1_device_manager_create(dpy);