From 162faa42bed6940f54b840f125937158c805ca9a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Jun 2023 16:41:08 +0530 Subject: [PATCH] Fix window size not always being hidden after a resize --- kitty/child-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 4c4367017..c3de6a721 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -1017,9 +1017,9 @@ process_pending_resizes(monotonic_t now) { } } if (update_viewport) { - static const LiveResizeInfo empty = {0}; update_os_window_viewport(w, true); - w->live_resize = empty; + zero_at_ptr(&w->live_resize); + w->is_damaged = true; // because the window size should be hidden even if update_os_window_viewport does nothing } } }