Wayland: Fix copying from hidden kitty windows hanging

Fix #1051
This commit is contained in:
Kovid Goyal
2018-10-26 10:25:08 +05:30
parent 174bd5c57f
commit b650275d45
2 changed files with 3 additions and 1 deletions

View File

@@ -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`)

View File

@@ -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);
}