Skip to content

fix: preserve screencopy transforms for rotated outputs#530

Merged
galister merged 1 commit into
wayvr-org:mainfrom
hiinaspace:fix-rotated-output-screencopy-main
Jun 3, 2026
Merged

fix: preserve screencopy transforms for rotated outputs#530
galister merged 1 commit into
wayvr-org:mainfrom
hiinaspace:fix-rotated-output-screencopy-main

Conversation

@hiinaspace

Copy link
Copy Markdown
Contributor

I'm running sway 1.12 (wlroots), with a portrait screen configured with rotate 90. On v26.2.1, the screen isn't properly detected as rotated. If I enable upright_screen_fix: true, the monitor gets positioned in portrait initially, but grabbing/moving it snaps it back to a horizontal screen; plus the curvature is along the long axis/edit mode UI is along it.

This patch makes wlr-screencopy aware of the transform and instead modifies the UVs on the screen mesh so the screen displays in portrait. I'm not familiar enough with the rest of the codebase to say whether this the best way to do this, but it at least fixes the issue on my machine.

@galister

galister commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

neat, thanks

@galister galister merged commit 066f033 into wayvr-org:main Jun 3, 2026
5 checks passed
@hiinaspace hiinaspace deleted the fix-rotated-output-screencopy-main branch June 3, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants