-
-
Notifications
You must be signed in to change notification settings - Fork 38
[Feat] Multi-output composited screenshots #41
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
c7bd815 to
63ab617
Compare
|
I think once we can figure out the transform issue, this PR will be ready to merge? |
|
@Decodetalkers said, in #40 :
This is definitely a bug in Sway. The documentation for zwlr_screencopy_manager_v1::capture_output_region states that "The region is given in output logical coordinates, see xdg_output.logical_size.". For a square (e.g. 1000x1000 pixel) output, changing the geometry transform will not affect the logical size of the output; in all cases, the compositor will render the same image, just transformed differently. As a result, capturing a specific output region should produce the same result/capture the same area, no matter which geometry transform was applied. Testing with wayshot and e.g. A test script, in case it is useful: I've filed an MR that fixes the issue at https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4249 . Edit: it has been merged; we should all test transform handling using wlroots built from git master, from now on.
At least part of the transform issue isn't something wayshot can fix. |
|
Thank you for the comprehensive report. ❤️ |
|
Also would you guys mind if I add you both as repo collaborators, would be helpful to have the patch branches here itself. Let me know if you're interested. |
I test mime, it works, so I don't have clue why this branch not work.. emm.. I will feel glad if I can help |
|
Nope I'm just stupid. It works fine. |
Closes: #7 Closes: #8 Supercedes: #40 Signed-off-by: Decodetalkers <[email protected]> Signed-off-by: Shinyzenith <[email protected]>
Signed-off-by: Shinyzenith <[email protected]>
* If they do not conflict then debug logs can disrupt image data. Signed-off-by: Shinyzenith <[email protected]>
Signed-off-by: Shinyzenith <[email protected]>
d8d3137 to
ffb2543
Compare
|
I have written a solution to multi-output transformed screenshots with reference to the commit that @Decodetalkers made: 0d9ed3f. I need to find an ergonomic way to do the same for single output screenshots and I think this PR will be ready. |
1c44efa to
0d9ed3f
Compare
|
I have fixed single output transforms handling too. I will do some cleanup and commit it. |
|
@mstoeckl @Decodetalkers Thank you so much for your help, it would be impossible to get this PR finished without you guys. I have completed transform handling and committed it. If you guys can leave a review that would help a lot. I'll rebase and merge after the review. |
0d9ed3f to
11dc370
Compare
11dc370 to
1e4af0d
Compare
Signed-off-by: Shinyzenith <[email protected]>
1e4af0d to
12fb764
Compare
Decodetalkers
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.
I think it is good.
|
Merged to main branch. |
I attempted to clean up the code a little bit and introduce some style changes to the same PR. The original author has been credited in the commit sign off.
@mstoeckl @Decodetalkers
Supercedes: #40