fix cursor_trail issue with long key press

This commit is contained in:
Rick Choi
2024-12-24 10:32:54 +09:00
parent 5994a0bb2d
commit b8568f6b3b
2 changed files with 14 additions and 7 deletions

View File

@@ -156,8 +156,7 @@ update_cursor_trail_needs_render(CursorTrail *ct, Window *w) {
bool
update_cursor_trail(CursorTrail *ct, Window *w, monotonic_t now, OSWindow *os_window) {
if (!WD.screen->paused_rendering.expires_at && OPT(cursor_trail) < now - WD.screen->cursor->position_changed_by_client_at) {
if (!WD.screen->paused_rendering.expires_at && OPT(cursor_trail) <= now - WD.screen->cursor->position_changed_by_client_at) {
update_cursor_trail_target(ct, w);
}