-
Notifications
You must be signed in to change notification settings - Fork 195
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
HiDPI scaling on Xwayland outside Gnome broken (for some multi-monitor geometries) #409
Comments
oxan
changed the title
HiDPI scaling on Xwayland broken for some multi-monitor geometries
HiDPI scaling on Xwayland outside Gnome broken (for some multi-monitor geometries)
Jun 28, 2024
The workaround in the OPs post worked for me, but the UI is then kind of blurry. |
The reason for reading Wayland scales in XWayland mode was to enable per-monitor scaling, while stll running on X toolkit, before the Wayland toolkit was ready. Now we got the Wayland toolkit working, so we're going to revert these problematic changes soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment: PHPStorm 2024.1.4 on JBR 17.0.11 1-b1207.24, amd64, Ubuntu 24.04, KDE 5.27.11.
Situation:
Xft.dpi
of 192. The Xwayland (Xinerama) screen for the external display will have double the native resolution (5120x2880), and will be downscaled by the Wayland compositor.Symptoms:
Root cause:
X11GraphicsDevice.getNativeScaleFactor()
. This method first checks thewaylandMonitorScales
array, and uses the value from there if it's not empty. This array is initialized on startup fromX11GraphicsEnvironment.updateWaylandMonitorScaling()
. It queries both the X server (XWayland) and the Wayland compositor for display information, matches them based on geometry on the Wayland and X side and, if they match, uses the scale factor from Wayland.Solution:
Xft.dpi
) and everything should work fine.isMonitorFramebufferScalingEnabled()
check should be updated to be generic instead of GNOME-specific.Workaround:
libwayland-client.so.0
on the library path:mutter-common
package on Debian/Ubuntu):The text was updated successfully, but these errors were encountered: