]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Enable ext-image-copy-capture-v1
authorAndri Yngvason <andri@yngvason.is>
Sun, 8 Dec 2024 20:52:57 +0000 (20:52 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 22 May 2025 09:51:06 +0000 (11:51 +0200)
meson.build
protocols/meson.build
src/server.c

index d8585029950f47a9e8d904382f11ee6298695a29..81d0bac61fee2fc653ff1a16a66f17e58073c3d5 100644 (file)
@@ -59,7 +59,7 @@ wlroots_has_xwayland = wlroots.get_variable('have_xwayland') == 'true'
 have_libsfdo = not get_option('icon').disabled()
 
 wayland_server = dependency('wayland-server', version: '>=1.19.0')
-wayland_protos = dependency('wayland-protocols', version: '>=1.35')
+wayland_protos = dependency('wayland-protocols', version: '>=1.37')
 xkbcommon = dependency('xkbcommon')
 xcb = dependency('xcb', required: get_option('xwayland'))
 xcb_icccm = dependency('xcb-icccm', required: get_option('xwayland'))
index 9a90c09143fcb269f51e156e98bedbdb2eafa28c..6d804885277f5b2983e7bc4a727d0a5cee4f7728 100644 (file)
@@ -21,6 +21,9 @@ server_protocols = [
        wl_protocol_dir / 'staging/drm-lease/drm-lease-v1.xml',
        wl_protocol_dir / 'staging/xwayland-shell/xwayland-shell-v1.xml',
        wl_protocol_dir / 'staging/tearing-control/tearing-control-v1.xml',
+       wl_protocol_dir / 'staging/ext-foreign-toplevel-list/ext-foreign-toplevel-list-v1.xml',
+       wl_protocol_dir / 'staging/ext-image-capture-source/ext-image-capture-source-v1.xml',
+       wl_protocol_dir / 'staging/ext-image-copy-capture/ext-image-copy-capture-v1.xml',
        'cosmic-workspace-unstable-v1.xml',
        'ext-workspace-v1.xml',
        'wlr-layer-shell-unstable-v1.xml',
index 7adafb12dc2130d86de301c3117d094c01208e80..ccbd57baf3db1fb7db0717d4adfabedb4bcbce45 100644 (file)
@@ -16,6 +16,8 @@
 #include <wlr/types/wlr_presentation_time.h>
 #include <wlr/types/wlr_primary_selection_v1.h>
 #include <wlr/types/wlr_screencopy_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_security_context_v1.h>
 #include <wlr/types/wlr_single_pixel_buffer_v1.h>
 #include <wlr/types/wlr_viewporter.h>
@@ -643,6 +645,8 @@ server_init(struct server *server)
 
        wlr_export_dmabuf_manager_v1_create(server->wl_display);
        wlr_screencopy_manager_v1_create(server->wl_display);
+       wlr_ext_image_copy_capture_manager_v1_create(server->wl_display, 1);
+       wlr_ext_output_image_capture_source_manager_v1_create(server->wl_display, 1);
        wlr_data_control_manager_v1_create(server->wl_display);
        server->security_context_manager_v1 =
                wlr_security_context_manager_v1_create(server->wl_display);