-
Notifications
You must be signed in to change notification settings - Fork 608
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
[BUG] dpi calculation error on rotated displays (wayland) #1590
Comments
Did you read the guidelines? https://github.com/davatorium/rofi/blob/next/.github/CONTRIBUTING.md See the last line. |
Oopsie. I thought I had :-/ sorry! |
https://github.com/lbonn/rofi |
Thanks a lot. Also in general, thanks for rofi! :-) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Rofi version (rofi -v)
1.7.3
Configuration
https://gist.github.com/qodo-io/36623f90c03ae96204b0d9d1748102e7
Launch command
rofi --help
Step to reproduce
prerequisites:
swaymsg output DP-1 transform 90
)optional: physically rotate your display to get your neck into a healthy debugging position)
steps:
rofi --help
and identify theMonitor layout:
sectionExpected behavior
correct dpi would be
123,123
in this example, as:~ calc precision: e^-8 2560/(53/2.54) 2560/(53/2.54): 122.68679246
Actual behavior
dpi is
69,217
, aswidth
andheight
are flippedAdditional information
probable root cause: the dpi calculation does not take wayland display rotation into account (sway example from CLI:
swaymsg -t get_outputs | jq '.[]|.transform'
)The text was updated successfully, but these errors were encountered: