From 42115b531ca537cb51574f239547b3783eace1b8 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 6 Jun 2025 16:37:26 +0800 Subject: [PATCH] feat: Enable ext-image-copy-capture-v1 --- protocols/meson.build | 3 +++ src/maomao.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/protocols/meson.build b/protocols/meson.build index 13b2f30..6079908 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -15,6 +15,9 @@ wayland_xmls = [ wl_protocol_dir + '/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml', wl_protocol_dir + '/staging/cursor-shape/cursor-shape-v1.xml', wl_protocol_dir + '/stable/tablet/tablet-v2.xml', + wl_protocol_dir + '/staging/ext-image-copy-capture/ext-image-copy-capture-v1.xml', + wl_protocol_dir + '/staging/ext-image-capture-source/ext-image-capture-source-v1.xml', + wl_protocol_dir + '/staging/ext-foreign-toplevel-list/ext-foreign-toplevel-list-v1.xml', 'wlr-foreign-toplevel-management-unstable-v1.xml', 'dwl-ipc-unstable-v2.xml', 'wlr-layer-shell-unstable-v1.xml', diff --git a/src/maomao.c b/src/maomao.c index 2e44ff1..7be2377 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -29,6 +29,8 @@ #include #include #include +#include +#include #include #include #include @@ -6002,6 +6004,8 @@ void setup(void) { compositor = wlr_compositor_create(dpy, 6, drw); 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_data_device_manager_create(dpy); wlr_primary_selection_v1_device_manager_create(dpy);