From b650275d45bf7445a9a2b12b0f0a817e7740e879 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Oct 2018 10:25:08 +0530 Subject: [PATCH] Wayland: Fix copying from hidden kitty windows hanging Fix #1051 --- docs/changelog.rst | 2 ++ kitty/child-monitor.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 5e5663ae7..342cdda4b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -44,6 +44,8 @@ Changelog - Linux: Fix a crash when using the GNU Unifont as a fallback font (:iss:`1087`) +- Wayland: Fix copying from hidden kitty windows hanging (:iss:`1051`) + - Fix expansion of env vars not working in the :opt:`env` directive (:iss:`1075`) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 36e675b9c..a633bc479 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -639,7 +639,7 @@ render(double now) { for (size_t i = 0; i < global_state.num_os_windows; i++) { OSWindow *w = global_state.os_windows + i; if (!w->num_tabs || !should_os_window_be_rendered(w)) continue; - if (global_state.is_wayland && w->wayland_render_state != RENDER_FRAME_READY) { + if (global_state.is_wayland && w->wayland_render_state != RENDER_FRAME_READY && OPT(sync_to_monitor)) { if (w->wayland_render_state == RENDER_FRAME_NOT_REQUESTED) { wayland_request_frame_render(w); }