-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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] Issues with Wayland fractional scaling #2002
Comments
Hey
|
For the window decorations, The font itself is not the default one, it is JetBrainsMono Nerd Font with 1.5x scaling. It works (scales) fine on Windows, but I think fractional scaling is not being taken into account when determining the resolution in which the text should be rasterize. |
For me, (on KDE Wayland), everything is perfect except for fractional scaling causing the application to look blurry. It seems to be scaling well save the blurriness. |
With wayland, I'm using 2x at 4K resolution, and custom fonts, and the anti-aliasing is still blurry. |
I believe the issue is the same as we had on macOS where I fixed it by rendering the font at the full resolution now. |
glfwGetMonitorPhysicalSize might be useful to determine screen scaling? also should work cross platform |
Latest commit (dcd80fe) improved window size and font / image scaling on Wayland. Please try it out and see if it works better For reference, I still don't have a 4K monitor or anything of that sort but the window now looks the same as the X11 window when setting e.g the GNOME scaling to 200% |
Wow, the text is clearer now. |
Awesome! Thanks for reporting back |
@WerWolv With the latest commit, it seems that the scaling reported is incorrect. I have fractional scaling set to 175%, but it seems to report 0.9x as the native scale on Wayland. Windows worked previously and set native scaling to 1.8x, but now seems to use 1.0x as its native value. |
Update: Scaling from glfw seems to be reported incorrectly, it ceils the scaling.
Windows prints (1.75, 1.75) while it is (2.0, 2.0) on Linux. Also, I'm not sure if this is relevant or not, but edit: this does seem to also be the reason why scaling doesn't match up between platforms. |
Thank you! |
Operating System
Linux 6.12.4-arch1-1 (GNOME 47)
What's the issue you encountered?
ImHex seems to encounter some issues with Wayland's fractional scaling (set to 175% in my case), where the following occur:
OS Window decorations seem to not respect theme (light/dark on GNOME)When OS Window decorations are disabled, ImHex's own decorations don't show up
Font is not scaled to the same resolution to the rest of the UI, which makes anti aliasing very blurry.
Context menus appear in incorrect positions (not consistently reproducible)
Mouse cursor seems to artifact (issue disappears when screen recording?)
How can the issue be reproduced?
Use Wayland Windowing system in addition to setting fractional scaling settings in your DE, observe issues in ImHex when built from source.
ImHex Version
21b315b
ImHex Build Type
Installation type
Through
ninja install
Additional context?
I also used
xlsclients
to make sure that ImHex was not using XWayland, and it is not. Weirdly enough, I observed similar issues when running on XWayland, such as the window decorations being in the incorrect theme.The text was updated successfully, but these errors were encountered: