winit-sonoma-fix/src
Kirill Chibisov b4774861db
On X11, if RANDR based scale factor is higher than 20 reset it to 1
Some video drivers could set display metrics to odd values, which can result in
extra large scale factors (e.g. winit is sending 720 for 5k screen on nvidia
binary drivers), so let's just drop them to prevent clients from using them.
The value 20 was picked, because the DPR for 8k @ 5 inch is ~18.36.

Fixes #1983.
2021-10-30 23:47:31 +03:00
..
platform Update smithay-client-toolkit to 'v0.15.0' 2021-08-15 22:31:59 +03:00
platform_impl On X11, if RANDR based scale factor is higher than 20 reset it to 1 2021-10-30 23:47:31 +03:00
dpi.rs Clippy fixes (#2011) 2021-08-30 19:40:02 +02:00
error.rs Always use f as the argument name for &mut std::fmt::Formatter (#1023) 2019-07-09 17:49:07 -04:00
event.rs Clippy fixes (#2011) 2021-08-30 19:40:02 +02:00
event_loop.rs Clarify ControlFlow::Poll doc for web (#1725) 2020-09-24 10:30:26 -04:00
icon.rs Add ability to create Icons from embedded resources on Windows (#1410) 2020-03-07 14:42:21 -05:00
lib.rs Clippy fixes (#2011) 2021-08-30 19:40:02 +02:00
monitor.rs Fix misspellings in comments (#1618) 2020-07-09 08:08:26 -07:00
window.rs Clippy fixes (#2011) 2021-08-30 19:40:02 +02:00