winit/src/platform_impl/linux/x11
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
..
ime Ignore locale if unsupported by X11 backend (#1445) 2020-02-09 22:37:06 -07:00
util On X11, if RANDR based scale factor is higher than 20 reset it to 1 2021-10-30 23:47:31 +03:00
dnd.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
event_processor.rs Emit ScaleFactorChanged event on monitor reconnect (#1963) 2021-08-24 12:36:13 +02:00
events.rs Prefix numpad virtual key codes with Numpad 2020-09-20 12:58:24 +03:00
ffi.rs Implemented focus_window (#1944) 2021-05-19 18:39:53 +02:00
mod.rs Clippy fixes (#2011) 2021-08-30 19:40:02 +02:00
monitor.rs Rename hidpi_factor to scale_factor (#1334) 2020-01-05 14:15:12 -05:00
window.rs Fix X11 memory leak and remove mio-misc (#1987) 2021-08-24 12:38:56 +02:00
xdisplay.rs Fix warnings on all platforms (#1383) 2020-01-09 22:29:31 -07:00