From af376cf27e0ab058dcc4650a82dd4f6e657bfb04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Mar 2019 09:23:44 +0530 Subject: [PATCH] Tested scaling needed for initial window size on Wayland --- kitty/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/config.py b/kitty/config.py index f77e612bf..b9d01cea3 100644 --- a/kitty/config.py +++ b/kitty/config.py @@ -530,8 +530,8 @@ def initial_window_size_func(opts, cached_values): def get_window_size(cell_width, cell_height, dpi_x, dpi_y, xscale, yscale): if not is_macos: - # not sure if scaling is needed on non-macOS platforms, requires - # someone with requisite hardware to test. + # scaling is not needed on Wayland, but is needed on macOS. Not + # sure about X11. xscale = yscale = 1 if w_unit == 'cells': width = cell_width * w / xscale + (dpi_x / 72) * (opts.window_margin_width + opts.window_padding_width) + 1