mirror of
https://github.com/wez/wezterm.git
synced 2024-11-10 15:04:32 +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:
parent
3f212012f2
commit
91209af8da
@ -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<()> {
|
fn run_message_loop(&self) -> anyhow::Result<()> {
|
||||||
match self {
|
match self {
|
||||||
Self::X11(x) => x.run_message_loop(),
|
Self::X11(x) => x.run_message_loop(),
|
||||||
|
Loading…
Reference in New Issue
Block a user