Allow changing the cursor trail threshold time independently of input_delay

This commit is contained in:
Kovid Goyal
2024-10-18 11:04:13 +05:30
parent cbccda8061
commit 463c759bfb
7 changed files with 27 additions and 21 deletions

View File

@@ -56,7 +56,7 @@ update_cursor_trail(CursorTrail *ct, Window *w, monotonic_t now, OSWindow *os_wi
ct->corner_y[i] = EDGE(y, ci[i][1]);
}
}
else if (OPT(input_delay) < now - WD.screen->cursor->updated_at && ct->updated_at < now) {
else if (OPT(cursor_trail) < now - WD.screen->cursor->updated_at && ct->updated_at < now) {
float cursor_center_x = (EDGE(x, 0) + EDGE(x, 1)) * 0.5f;
float cursor_center_y = (EDGE(y, 0) + EDGE(y, 1)) * 0.5f;
float cursor_diag_2 = norm(EDGE(x, 1) - EDGE(x, 0), EDGE(y, 1) - EDGE(y, 0)) * 0.5f;