bugfix(x11): crash when querying xsettings prop fails

Don't crash when xsettings query fails with _present_ xsettings.

Closes: https://github.com/rust-windowing/winit/issues/3573
This commit is contained in:
Kirill Chibisov 2024-03-07 22:14:33 +04:00 committed by John Nunley
parent 563b0bf5e3
commit 359a38844b
5 changed files with 43 additions and 16 deletions

View file

@ -53,6 +53,7 @@ impl XConnection {
.get_string("Xft.dpi", "")
.and_then(|s| f64::from_str(s).ok())
}
pub fn get_output_info(
&self,
resources: &monitor::ScreenResources,