mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Cleanup cursor_trail threshold option name and documentation
This commit is contained in:
@@ -52,10 +52,10 @@ should_skip_cursor_trail_update(CursorTrail *ct, Window *w, OSWindow *os_window)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (OPT(cursor_trail_distance_threshold) > 0 && !ct->needs_render) {
|
||||
if (OPT(cursor_trail_start_threshold) > 0 && !ct->needs_render) {
|
||||
int dx = (int)round((ct->corner_x[0] - EDGE(x, 1)) / WD.dx);
|
||||
int dy = (int)round((ct->corner_y[0] - EDGE(y, 0)) / WD.dy);
|
||||
if (abs(dx) + abs(dy) <= OPT(cursor_trail_distance_threshold)) {
|
||||
if (abs(dx) + abs(dy) <= OPT(cursor_trail_start_threshold)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user