~whynothugo/shotman#3: 
Support multi monitor

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

Status
RESOLVED FIXED
Submitter
~cyrinux
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~whynothugo 2 years ago

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.

~cyrinux 2 years ago

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.

~whynothugo 2 years ago

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.

~whynothugo 2 years ago

swaymsg -t get_outputs | jq should be useful to extract the output's relative position; the rect property for each output has its positions relative to the global compositor space.

~cyrinux 2 years ago

Ok thanks you for the input, I try a fix.

~cyrinux 2 years ago

I got a fix working on one output, and I will be able to test it tomorrow on my work setup 😄

~cyrinux 2 years ago

~whynothugo REPORTED FIXED 2 years ago

Register here or Log in to comment, or comment via email.