~whynothugo/shotman#39: 
Screenshots from rotated display are rotated

I have a monitor that's in portrait mode, rotated 90 degrees counterclockwise. When I take a screenshot using shotman, I see this: https://imgur.com/C9rd7Y6

In other words, the screenshot is rotated (or unrotated, I guess, depending on how you see it). I am on shotman 0.4.7, running on sway through nixos.

Using

grim -g "$(slurp)" - | wl-copy

however, the result looks fine: https://imgur.com/QxSEHEo

Grim has some code that deals with this: https://gitlab.freedesktop.org/emersion/grim/-/blob/17da4b1f65cfd5d51a3a456f3ee38bd96861c745/output-layout.c

Maybe this is also related to https://github.com/emersion/xdg-desktop-portal-wlr/pull/245?

Thanks for a great screenshot tool!

Status
REPORTED
Submitter
~jolars
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
bug

~whynothugo a month ago

This is a bug. Screen rotation completely slipped my mind.

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