1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 19:27:22 +03:00

enable audible bell for X11

refs: #3
This commit is contained in:
Wez Furlong 2021-09-26 13:36:43 -07:00
parent 72cb110b65
commit aefbab5a9d
2 changed files with 12 additions and 0 deletions

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 {

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 {