diff --git a/docs/changelog.rst b/docs/changelog.rst index 042563aff..a2a96e05c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -81,8 +81,8 @@ To update |kitty|, :doc:`follow the instructions `. - Update to using the Unicode 12 standard -- Fix specifying initial window size in cells not working correctly on HiDPI - screens (:iss:`1444`) +- macOS: Fix specifying initial window size in cells not working correctly on + Retina screens (:iss:`1444`) 0.13.3 [2019-01-19] diff --git a/kitty/config.py b/kitty/config.py index 3e1a78d22..f77e612bf 100644 --- a/kitty/config.py +++ b/kitty/config.py @@ -529,6 +529,10 @@ def initial_window_size_func(opts, cached_values): h, h_unit = opts.initial_window_height 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. + xscale = yscale = 1 if w_unit == 'cells': width = cell_width * w / xscale + (dpi_x / 72) * (opts.window_margin_width + opts.window_padding_width) + 1 else: