From 576ce21fc8c324edd95bc20018ff00b2eef44204 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Jun 2021 20:58:44 +0530 Subject: [PATCH] macOS: Fix shortcuts in the global menu bar responding slowly when cursor blink is disabled/timed out The event loop needed to be forced to tick over immediately otherwise the changes were not being rendered till some other event such as mouse motion or key release was not delivered. Fixes #3693 --- docs/changelog.rst | 3 +++ kitty/child-monitor.c | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8c2127d28..eeeccaa19 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -26,6 +26,9 @@ To update |kitty|, :doc:`follow the instructions `. - macOS: Fix a regression in 0.21.0 that broke middle-click to paste from clipboard (:iss:`3730`) +- macOS: Fix shortcuts in the global menu bar responding slowly when cursor blink + is disabled/timed out (:iss:`3693`) + - When displaying scrollback ensure that the window does not quit if the amount of scrollback is less than a screen and the user has the ``--quit-if-one-screen`` option enabled for less (:iss:`3740`) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 6af60c304..96cee1e37 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -1030,6 +1030,7 @@ process_global_state(void *data) { } memset(cocoa_pending_actions, 0, sizeof(cocoa_pending_actions)); has_cocoa_pending_actions = false; + maximum_wait = 0; // ensure loop ticks again so that the actions side effects are performed immediately } #endif report_reaped_pids();