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

capture client surface #32

Closed
TheJJ opened this issue Jan 31, 2024 · 3 comments
Closed

capture client surface #32

TheJJ opened this issue Jan 31, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@TheJJ
Copy link

TheJJ commented Jan 31, 2024

instead of mirroring whole outputs or regions, it would be useful to be able to mirror a client surface.

this would then work similar to a window selection in a browser's screen sharing feature.

my use-case would be mirroring my emacs window (showing slides or code) to the beamer, but not showing everything else which is used as tooling just for me during a lecture.

bonus: with a key combination, change the currenly streamed source client surface - then I could switch from sharing emacs to my browser directly in-place.

@Ferdi265
Copy link
Owner

Ferdi265 commented Jan 31, 2024

This is a feature I have also wanted to implement for a long time, but is sadly hard to implement.

on Wayland, capturing specific client surfaces requires compositor support. The wlroots protocols wlr-screencopy and wlr-export-dmabuf that are currently used by wl-mirror only support whole output or rectangular output region capturing.

The XDG Desktop Portal API for Screensharing does have support for sharing individual windows, as long as the compositor and the portal implementation support it. I have been working on and off on getting support for that into wl-mirror (issue #16), though that has proven to be harder to implement than expected.

With an XDG Portal screenshare backend, single window capturing would automatically be implemented for compositors like Hyprland, KDE, or Gnome. This would not work on sway, since xdg-desktop-portal-wlr does not support single window capturing.

@Ferdi265 Ferdi265 added the duplicate This issue or pull request already exists label Jan 31, 2024
@Ferdi265
Copy link
Owner

duplicate of #16

@Ferdi265 Ferdi265 added the enhancement New feature or request label Jan 31, 2024
@Ferdi265
Copy link
Owner

(added capturing of single windows as a direct goal task of #16, since it wasn't mentioned directly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants