-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
XWayland DPI should always be 96 no matter which scaling settings are and which actual DPI displays have #3584
Comments
This is an Xwayland bug: swaywm/wlroots#1119 Would be nice to understand what's going on in Xwayland's code. |
In my case, 118x118 dots per inch is an actual DPI of one of my displays, so it looks like something a bit different. |
It seems that XWayland merely (as well as regular xorg server) gathers DPI from EDID which works fine if you have one display and a regular xorg server. But if you have a wayland compositor which scales windows according to their preferences and assuming that everything that comes from XWayland is 96 dpi, some issues happen. So, the point is: if sway assumes that everything what comes from XWayland is 96 dpi, it should ensure that that everything what comes from XWayland is 96 dpi. |
DPI != scale DPI can be used by X11 clients to adjust their font size. However all X11 clients are well aware that they should render in LoDPI, and they do so. In the end, this doesn't sound like a bug to me. |
Well, ignoring custom user's preferences based on display proximity, vision, etc., in perfect setup, scale should be equal to display's DPI divided by 96 to get the same picture on different displays to be the same physical size. So, it's not the same, true, but they correlate.
That's not true. They do it for everything except for fonts. Try to exec, for example, Probably, XWayland should not try to detect display's DPI and always use 96 in the first place. From that point, it may be considered as XWayland bug. |
Scale matching DPI seems pretty unlikely.
works correctly for me. |
So, after long, more careful testing, it seems that you're right: dpi changes happen on display hot plug, XWayland completely ignores setting dpi via xrandr hence the workaround doesn't work. |
Workaround: place the following on the top of your sway config:
The text was updated successfully, but these errors were encountered: