From 0fac6e4de97c92628b6425b01941c0140e7b0fee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 Sep 2022 10:25:42 +0530 Subject: [PATCH] render frames should be always respected on macOS Only Wayland suffers from flicker on resize when using render frames. --- 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 f319195a2..d4353a79f 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -768,7 +768,7 @@ render(monotonic_t now, bool input_read) { if (w->render_state == RENDER_FRAME_NOT_REQUESTED || no_render_frame_received_recently(w, now, ms_to_monotonic_t(250ll))) request_frame_render(w); // dont respect render frames soon after a resize on Wayland as they cause flicker because // we want to fill the newly resized buffer ASAP, not at compositors convenience - if (global_state.is_wayland && (monotonic() - w->viewport_resized_at) > s_double_to_monotonic_t(1)) continue; + if (!global_state.is_wayland || (monotonic() - w->viewport_resized_at) > s_double_to_monotonic_t(1)) continue; } w->render_calls++; make_os_window_context_current(w);