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

fix: transpose selected region correctly #397 #564

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

dynobo
Copy link
Owner

@dynobo dynobo commented Dec 3, 2023

On wayland, window and screen dimensions reported by Qt differ if "normal" scaling is used, or the experimental fractional scaling (scale-monitor-framebuffer). To transpose the selected region from window position to screenshot position robustly, it's better to use Qt's window dimensions as reference instead of the Qt's screen dimensions.

On wayland, window and screen dimensions reported by Qt differ if
"normal" scaling is used, or the experimental fractional scaling
(scale-monitor-framebuffer). To transpose the selected region from
window position to screenshot position robustly, it's better to use
Qt's window dimensions as reference instead of the Qt's screen
dimensions.
@dynobo dynobo force-pushed the feature/fix-selection-with-scaling branch from f9d3615 to 9768788 Compare December 4, 2023 00:51
@coveralls
Copy link
Collaborator

coveralls commented Dec 4, 2023

Coverage Status

coverage: 87.094% (+0.001%) from 87.093%
when pulling eb6bec7 on feature/fix-selection-with-scaling
into dc8fced on main.

@dynobo dynobo force-pushed the feature/fix-selection-with-scaling branch from 9768788 to eb6bec7 Compare December 4, 2023 04:20
@dynobo dynobo merged commit 853cdb4 into main Dec 4, 2023
23 checks passed
@dynobo dynobo deleted the feature/fix-selection-with-scaling branch December 4, 2023 05:52
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.

None yet

2 participants