Merge branch 'fix-inactive-text-alpha' of https://github.com/page-down/kitty

Fixes #4928
This commit is contained in:
Kovid Goyal 2022-04-07 15:16:26 +05:30
commit e8a9bbb51d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,8 @@ Detailed list of changes
- Only check for updates in the official binary builds. Distro packages or source builds will no longer check for updates, regardless of the - Only check for updates in the official binary builds. Distro packages or source builds will no longer check for updates, regardless of the
value of :opt:`update_check_interval`. value of :opt:`update_check_interval`.
- Fix :opt:`inactive_text_alpha` still being applied to the cursor hidden window after focus (:iss:`4928`)
0.24.4 [2022-03-03] 0.24.4 [2022-03-03]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -637,6 +637,7 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int *
if (is_active_window) { if (is_active_window) {
*active_window_id = w->id; *active_window_id = w->id;
if (collect_cursor_info(&WD.screen->cursor_render_info, w, now, os_window)) needs_render = true; if (collect_cursor_info(&WD.screen->cursor_render_info, w, now, os_window)) needs_render = true;
WD.screen->cursor_render_info.is_focused = os_window->is_focused;
set_os_window_title_from_window(w, os_window); set_os_window_title_from_window(w, os_window);
*active_window_bg = window_bg; *active_window_bg = window_bg;
} else { } else {