enable audible bell for X11

refs: #3
This commit is contained in:
Wez Furlong committed 2021-09-26 13:36:43 -07:00
1 parent 72cb110b65
commit aefbab5a9d
2 files changed
+12

No files matched your search

+4
View File
@@ -228,6 +228,10 @@ impl ConnectionOps for XConnection {
Ok(())
}
fn beep(&self) {
xcb::xproto::bell(&self.conn, 0);
}
}
fn compute_default_dpi(xrm: &HashMap<String, String>, xsettings: &XSettingsMap) -> f64 {
+8
View File
@@ -137,6 +137,14 @@ impl ConnectionOps for Connection {
Self::Wayland(w) => w.get_appearance(),
}
}
fn beep(&self) {
match self {
Self::X11(x) => x.beep(),
#[cfg(feature = "wayland")]
Self::Wayland(w) => w.beep(),
}
}
}
impl Window {