Hi, Thanks for this pretty fast screeshoter for sway!
I think the multi monitor is buggy, I got black screenshot when I got several monitor. Bad monitor detection?
Any idea? Are you able to test or you prefer I try to fix it?
Thanks
Same as https://todo.sr.ht/~whynothugo/shotman/2 ?
This is fixed in main, but the fix relies on unreleased changes in slurp, so you need slurp-git.
Yeah, similare, I confirm that region and output mode are fix with the main branch of shotman + slurp-git, but I discover now that "window" mode is still broke. I can shot a window from one screen but not the other one.
The issue is the same;
swaymsg
will return coordinates relative to the xdg-output global compositor space. They need to be converted into output-local coordinates.
swaymsg -t get_outputs | jq
should be useful to extract the output's relative position; therect
property for each output has its positions relative to the global compositor space.
Should happen in https://git.sr.ht/~whynothugo/shotman/tree/main/item/src/sway.rs
Ok thanks you for the input, I try a fix.
I got a fix working on one output, and I will be able to test it tomorrow on my work setup 😄
You can find here my patch https://lists.sr.ht/~whynothugo/public-inbox/patches/36013