Cleanup cursor_trail threshold option name and documentation

This commit is contained in:
Kovid Goyal
2024-10-27 13:44:33 +05:30
parent 0f2662461a
commit 865aa4bc24
6 changed files with 20 additions and 19 deletions

View File

@@ -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;
}
}