X11: Fix incorrect DPI factor when waking from suspend (#1303)

This commit is contained in:
Murarth
2019-12-04 10:18:20 -07:00
committed by GitHub
parent 2888d5c6cf
commit 1a514dff38
4 changed files with 14 additions and 6 deletions

View File

@@ -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())
}