Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHiDPI scaling on Linux #12054
HiDPI scaling on Linux #12054
Comments
|
One thing you can do for now is use --device-pixel-ratio=2.0 (or 1.5 or 2.5 or whatever depending on what you want). Do you happen to know what the normal method for doing this on Linux is? We do have support for this on Windows and Mac, although even there we could improve a bit, but mostly it is a matter of automating adjusting the device pixel ratio based on some system notification. |
|
On GNOME desktops, you can read the gsettings key |
|
@benwaffle |
|
On Wayland, you should listen to the wl_surface::enter/leave events (https://wayland.freedesktop.org/docs/html/apa.html#idp67102000), and take the scale from the wl_output::scale, resizing the internal buffer, using wl_surface::set_buffer_scale to match the output, and redrawing. When overlapping multiple outputs, I'm not sure what the best behaviour should be :) Note that this is only for sizing the buffer: you'd probably still want to set the device pixel ratio using the wl_output::geometry to get some correspondence between a CSS px (which is an angular measurement) and a display px.
|
|
somehow weston gets overlapping multi-dpi monitors perfect |
|
Is this still an issue? |

No description provided.