Skip to content
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

Screenshot on vertical monitor rotated 180 degrees #5818

Closed
Xyene opened this issue Nov 15, 2020 · 3 comments
Closed

Screenshot on vertical monitor rotated 180 degrees #5818

Xyene opened this issue Nov 15, 2020 · 3 comments
Labels
bug Not working as intended

Comments

@Xyene
Copy link
Member

Xyene commented Nov 15, 2020

After updating wlroots to contain renderer v6 patches, screenshots taken on my vertical monitor are rotated 180 degrees.

Screenshot

image

My output config is

output DP-2 pos 1440 530 res 3840x2160 scale 1.5
output DP-1 pos 0 0 res 2560x1440 transform 270

(The vertical monitor is DP-1.)

I'm running

$ uname -a                                                                                                                        
Linux lynwood 5.8.0-0.bpo.2-amd64 #1 SMP Debian 5.8.10-1~bpo10+1 (2020-09-26) x86_64 GNU/Linux

with amdgpu on an RX 580.

@Xyene Xyene added the bug Not working as intended label Nov 15, 2020
@emersion
Copy link
Member

TBH that sounds like a grim bug. When i hack the wlroots example to capture the raw buffer for my 90-degree rotated output, I see the buffer rotated counter-clockwise. In other words, if I look at my monitor and tilt my head so that the brand of the monitor appears in the natural orientation, then I see exactly what the screenshot shows.

emersion added a commit to emersion/grim that referenced this issue Nov 16, 2020
When the compositor sends a buffer without the Y_INVERT flag, the
resulting image had it rotated by 180 degrees.

References: swaywm/sway#5818
@emersion
Copy link
Member

Ref emersion/grim#79

emersion added a commit to emersion/grim that referenced this issue Nov 17, 2020
When the compositor sends a buffer without the Y_INVERT flag, the
resulting image had it rotated by 180 degrees.

References: swaywm/sway#5818
@Xyene
Copy link
Member Author

Xyene commented Nov 18, 2020

Fixed by emersion/grim#79, thanks!

@Xyene Xyene closed this as completed Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

2 participants