Skip to content

Commit 66e784a

Browse files
committed
feat(linux/wlr): Implement ext-image-copy-capture
Adds the new image-copy-capture protocol in staging as primary backend for the wayland capture method, but keeps wlr-screencopy as a fallback Also supports actual output names in output_name
1 parent d157bb1 commit 66e784a

6 files changed

Lines changed: 583 additions & 68 deletions

File tree

cmake/compile_definitions/linux.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,11 @@ if(WAYLAND_FOUND)
136136
pkg_check_modules(WAYLAND_PROTOCOLS wayland-protocols REQUIRED)
137137
endif()
138138

139+
GEN_WAYLAND("${WAYLAND_PROTOCOLS_DIR}" "stable/linux-dmabuf" linux-dmabuf-v1)
140+
GEN_WAYLAND("${WAYLAND_PROTOCOLS_DIR}" "staging/ext-image-copy-capture" ext-image-copy-capture-v1)
141+
GEN_WAYLAND("${WAYLAND_PROTOCOLS_DIR}" "staging/ext-image-capture-source" ext-image-capture-source-v1)
142+
GEN_WAYLAND("${WAYLAND_PROTOCOLS_DIR}" "staging/ext-foreign-toplevel-list" ext-foreign-toplevel-list-v1)
139143
GEN_WAYLAND("${WAYLAND_PROTOCOLS_DIR}" "unstable/xdg-output" xdg-output-unstable-v1)
140-
GEN_WAYLAND("${WAYLAND_PROTOCOLS_DIR}" "unstable/linux-dmabuf" linux-dmabuf-unstable-v1)
141144
GEN_WAYLAND("${CMAKE_SOURCE_DIR}/third-party/wlr-protocols" "unstable" wlr-screencopy-unstable-v1)
142145

143146
include_directories(

0 commit comments

Comments
 (0)