Merge branch 'feat/cursor-trail-between-tabs' of https://github.com/ngavinsir/kitty
This commit is contained in:
commit
bca1926933
1 changed files with 11 additions and 0 deletions
|
|
@ -769,6 +769,17 @@ prepare_to_render_os_window(OSWindow *os_window, monotonic_t now, unsigned int *
|
|||
set_os_window_title_from_window(w, os_window);
|
||||
*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.needs_render = true;
|
||||
tab->cursor_trail.updated_at = now;
|
||||
os_window->cursor_blink_zero_time = now;
|
||||
}
|
||||
if (update_cursor_trail(&tab->cursor_trail, w, now, os_window)) {
|
||||
needs_render = true;
|
||||
// A max wait of zero causes key input processing to be
|
||||
|
|
|
|||
Loading…
Reference in a new issue