From: Andri Yngvason Date: Sun, 8 Dec 2024 20:52:57 +0000 (+0000) Subject: Enable ext-image-copy-capture-v1 X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=34947b779173a33c2f2f9b493193abb07c3fbe20;p=proto%2Flabwc.git Enable ext-image-copy-capture-v1 --- diff --git a/meson.build b/meson.build index d8585029..81d0bac6 100644 --- a/meson.build +++ b/meson.build @@ -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')) diff --git a/protocols/meson.build b/protocols/meson.build index 9a90c091..6d804885 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -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', diff --git a/src/server.c b/src/server.c index 7adafb12..ccbd57ba 100644 --- a/src/server.c +++ b/src/server.c @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include #include #include @@ -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);