mirror of
https://github.com/wez/wezterm.git
synced 2024-12-27 15:37:29 +03:00
skip hidpi synthesis on macos, as it breaks manual window resizing(!)
This commit is contained in:
parent
74b015a6d8
commit
bfeca4e724
@ -670,7 +670,9 @@ impl GliumTerminalWindow {
|
||||
// think we know, otherwise we will use the wrong font size.
|
||||
let old_dpi_scale = self.fonts.get_dpi_scale();
|
||||
let dpi_scale = self.host.display.gl_window().get_hidpi_factor();
|
||||
if (old_dpi_scale - dpi_scale).abs() < std::f64::EPSILON {
|
||||
if cfg!(all(unix, not(target_os = "macos")))
|
||||
&& (old_dpi_scale - dpi_scale).abs() < std::f64::EPSILON
|
||||
{
|
||||
let (width, height): (u32, u32) = size.to_physical(dpi_scale).into();
|
||||
eprintln!(
|
||||
"Synthesize HiDpiFactorChanged {} -> {} current {}x{} -> {}x{}",
|
||||
|
Loading…
Reference in New Issue
Block a user