feat: Enable ext-image-copy-capture-v1

This commit is contained in:
DreamMaoMao 2025-06-06 16:37:26 +08:00
parent 5bb97f83f4
commit 42115b531c
2 changed files with 7 additions and 0 deletions

View file

@ -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',

View file

@ -29,6 +29,8 @@
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_drm.h>
#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_ext_image_capture_source_v1.h>
#include <wlr/types/wlr_ext_image_copy_capture_v1.h>
#include <wlr/types/wlr_fractional_scale_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_idle_inhibit_v1.h>
@ -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);