1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 11:17:15 +03:00

window: fix default dpi on X11 and Wayland systems

Similar to da455cafa1, the extra
connection layer wasn't forwarding the call to the actual impl.

closes #947
This commit is contained in:
Wez Furlong 2021-09-06 10:01:16 -07:00
parent 3f212012f2
commit 91209af8da

View File

@ -114,6 +114,14 @@ impl ConnectionOps for Connection {
}
}
fn default_dpi(&self) -> f64 {
match self {
Self::X11(x) => x.default_dpi(),
#[cfg(feature = "wayland")]
Self::Wayland(w) => w.default_dpi(),
}
}
fn run_message_loop(&self) -> anyhow::Result<()> {
match self {
Self::X11(x) => x.run_message_loop(),