Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for workspace capture #60

Open
yVieta opened this issue Mar 10, 2025 · 2 comments
Open

Support for workspace capture #60

yVieta opened this issue Mar 10, 2025 · 2 comments
Labels
enhancement New feature or request upstream-bug The bug is caused by an issue in a dependency or related project

Comments

@yVieta
Copy link

yVieta commented Mar 10, 2025

Is there a solution which you can only mirror one workspace? For instance on sway mirroring workspace 1 on secondary screen.

@Ferdi265
Copy link
Owner

Is there a solution which you can only mirror one workspace? For instance on sway mirroring workspace 1 on secondary screen.

Right now, no.

Sway does not provide an API to capture a workspace, only outputs. Sway doesn't even have an API to capture individual windows.

Wayland in general now has a standard protocol for capturing outptus and individual windows (ext-image-copy-capture-v1 and ext-image-capture-source-v1, partially supported in wl-mirror as of v0.18.0-pre, will be released soon), but Sway/wlroots doesn't implement individual window capture. There is also the XDG Desktop Portal for ScreenCasts, which officially supports capturing outputs, windows, and virtual outputs (if implemented by the compositor, supported in an unmerged branch of wl-mirror), Sway/wlroots doesn't implement individual window capture there either.

The COSMIC desktop has a protocol that was the inspiration for the standard ext-image-copy-capture-v1 protocol that has an additional capture source for capturing Workspaces (cosmic-screencopy-unstable-v2 and cosmic-image-source-unstable-v1).

wl-mirror will soon-ish also support the COSMIC protocol, including workspace capture, and will also support workspace capture for other desktops in a future version if they implement a workspace capture source.

@Ferdi265 Ferdi265 added enhancement New feature or request upstream-bug The bug is caused by an issue in a dependency or related project labels Mar 10, 2025
@Ferdi265
Copy link
Owner

Marking as an upstream bug since this depends on future protocols to be implemented by Sway / wlroots.

@Ferdi265 Ferdi265 changed the title How tp only mirror one specific workspace Support for workspace capture Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request upstream-bug The bug is caused by an issue in a dependency or related project
Projects
None yet
Development

No branches or pull requests

2 participants