-
Notifications
You must be signed in to change notification settings - Fork 867
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
MonitorHandle::scale_factor does not use fractional factor on Wayland #3183
Comments
The monitor scale and window scale has nothing to do with each other on Wayland. |
Different protocol, sure, but is it a bug that It's a nuisance that I'm not getting the correct scale factor since I'm attempting to limit the window size to the screen size (also not really possible on multi-screen systems). |
I mean, they are just separate, use the scale factor from the The GTK folks had the same issue since they used heuristics, they were told to not do that anymore, because it's just plain wrong, since you don't know on which monitor you'll open anyway. I can update docs explicitly saying that the scale factor is for the monitor, but window could have different scaling factor. There're compositor which set a scaling on per window basis, so you can have clients with 2, 1.5, 1 scaling on the same output at the same time without anything being blurry (KWIN does this as well, for XWayland only though). |
Sure, I have to use a different approach for sizing. But...
This is not true in my case: the reported value is 2 while the desktop has it set to 1.5. Possibly this means that |
Exactly, that's what |
Wayland scales each window individually, thus make it clear. Also recommend against using the `MonitorHandle::scale_factor`. Fixes rust-windowing#3183.
Wayland scales each window individually, thus make it clear. Also recommend against using the `MonitorHandle::scale_factor`. Fixes rust-windowing#3183.
Wayland scales each window individually, thus make it clear. Also recommend against using the `MonitorHandle::scale_factor`. Fixes #3183.
Wayland scales each window individually, thus make it clear. Also recommend against using the `MonitorHandle::scale_factor`. Fixes rust-windowing#3183.
Wayland scales each window individually, thus make it clear. Also recommend against using the `MonitorHandle::scale_factor`. Fixes #3183.
I see
MonitorHandle::scale_factor
reporting 2 whileWindow::scale_factor
correctly reports 1.5 on Wayland.The docs of
Window::scale_factor
note that it useswp-fractional-scale
protocol if available, otherwise returning an integer factor. The docs ofMonitorHandle::scale_factor
do not mention any such limitation — is this just a doc issue?BTW the
apple_2
link is broken.The text was updated successfully, but these errors were encountered: