Cleanup previous PR

Fixes #9587
This commit is contained in:
Kovid Goyal 2026-03-03 13:37:14 +05:30
parent 0930535642
commit a7480370a4
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 6 deletions

View file

@ -256,6 +256,8 @@ Detailed list of changes
- macOS: Fix flickering during OS Window resize (:disc:`9582`)
- Cursor trail: Show a cursor trail when switching tabs (:pull:`9588`)
0.45.0 [2025-12-24]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -770,12 +770,7 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int *
*active_window_bg = window_bg;
if (OPT(cursor_trail)) {
if (os_window->last_active_tab != os_window->active_tab && os_window->last_active_tab < os_window->num_tabs) {
CursorTrail *prev = &os_window->tabs[os_window->last_active_tab].cursor_trail;
static const int ci_x[] = {1, 1, 0, 0}, ci_y[] = {0, 1, 1, 0};
for (int ci = 0; ci < 4; ci++) {
tab->cursor_trail.corner_x[ci] = prev->cursor_edge_x[ci_x[ci]];
tab->cursor_trail.corner_y[ci] = prev->cursor_edge_y[ci_y[ci]];
}
tab->cursor_trail = os_window->tabs[os_window->last_active_tab].cursor_trail;
tab->cursor_trail.needs_render = true;
tab->cursor_trail.updated_at = now;
os_window->cursor_blink_zero_time = now;