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
This commit is contained in:
Kovid Goyal 2021-06-21 20:58:44 +05:30
parent 2ba015d0be
commit 576ce21fc8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- 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`)

View File

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