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:
parent
563b0bf5e3
commit
359a38844b
5 changed files with 43 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue