-
Notifications
You must be signed in to change notification settings - Fork 83
Add support for toplevel capture #334
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
Conversation
1056c53 to
795c18b
Compare
|
I'm getting a segfault
I'm trying to reproduce and find out more. My compositor implementation that I'm testing: https://codeberg.org/pkap/river/src/branch/toplevel-capture |
How do you trigger the segfault? It sounds unrelated to toplevel capture (ie, I think it would affect output capture as well). |
It happens when I resize the shared toplevel. When I build with edit: here's more stacktrace |
|
What is the expected behavior when a streamed window is closed. I quickly dipped into the portal spec and could not find anything. |
|
Updated to fix the crash on resize and send the |
b8bdd20 to
c3876c2
Compare
kennylevinsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small cleanup nit (which is inherited from my original PR I believe), but otherwise LGTM!
Co-authored-by: Simon Ser <[email protected]>
This is set regardless of the target type.
This is a footgun.
xdpw acts as a permission dialog. Don't assume the user wants to share the first output when none of the choosers work.
Stolen from Sway, useful for the next commit.
Co-authored-by: Simon Ser <[email protected]>
We don't need to keep the gbm_bo around once it's exported as FDs.
c3876c2 to
ba3f6e2
Compare
kennylevinsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. :)
|
Thank you! |
I had to use `sway-git`, `wlroots-git`, and `xdg-desktop-portal-wlr-git` to be able to select specific windows to share, instead of only being able to select which output to share. Ref: emersion/xdg-desktop-portal-wlr#107 Ref: https://emersion.fr/blog/2025/status-update-79/ Ref: emersion/xdg-desktop-portal-wlr#334 Tested: https://mozilla.github.io/webrtc-landing/gum_test.html
Resizing doesn't work yet (but that's orthogonal to capture sources)Some work has been stolen from #329