From f97d078f81806235740ee75f2a5d6de1f56cae64 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 Feb 2018 10:00:33 +0530 Subject: [PATCH] Fix kitty saving incorrect window heights Typo caused saved window height to be actually the window width --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 59954a56f..6589d77dd 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -746,7 +746,7 @@ main_loop(ChildMonitor *self) { OSWindow *os_window = global_state.os_windows + w - 1; if (should_os_window_close(os_window)) { destroy_os_window(os_window); - call_boss(on_os_window_closed, "Kii", os_window->id, os_window->viewport_width, os_window->viewport_width); + call_boss(on_os_window_closed, "Kii", os_window->id, os_window->viewport_width, os_window->viewport_height); for (size_t t=0; t < os_window->num_tabs; t++) { Tab *tab = os_window->tabs + t; for (size_t w = 0; w < tab->num_windows; w++) mark_child_for_close(self, tab->windows[w].id);