mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 15:43:13 -04:00
X11: Fix incorrect DPI factor when waking from suspend (#1303)
This commit is contained in:
@@ -143,6 +143,11 @@ impl MonitorHandle {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn is_dummy(&self) -> bool {
|
||||
// Zero is an invalid XID value; no real monitor will have it
|
||||
self.id == 0
|
||||
}
|
||||
|
||||
pub fn name(&self) -> Option<String> {
|
||||
Some(self.name.clone())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user