Commit Graph

31 Commits

Author SHA1 Message Date
Rick Choi
b8568f6b3b fix cursor_trail issue with long key press 2024-12-24 10:32:54 +09:00
Kovid Goyal
865aa4bc24 Cleanup cursor_trail threshold option name and documentation 2024-10-27 13:44:33 +05:30
Rick Choi
f9368a9472 fix build error in linux ci 2024-10-27 15:13:05 +09:00
Rick Choi
db2ca7b4b8 refactor: split update_cursor_trail_states function into smaller pieces 2024-10-27 14:15:55 +09:00
Rick Choi
8f19a9ce97 fade out cursor trail where cursor is hidden 2024-10-27 13:55:53 +09:00
Rick Choi
12c37c9df3 rename fn update_cursor_trail_corners t just update_cursor_trail_states
now it also updates cursor_trail.needs_render in place, because it is
also a feedback state.
2024-10-27 13:34:24 +09:00
Rick Choi
f3de97f6d0 expose option cursor_trail_distance_threshold 2024-10-27 13:02:35 +09:00
Rick Choi
39deb82795 add distance threshold to cursor trail 2024-10-24 18:22:53 +09:00
Rick Choi
cfed32281d don't snap to cursor corners 2024-10-24 18:15:37 +09:00
Rick Choi
bbc5003014 normalize decay speed before applying 2024-10-24 07:01:58 +09:00
Kovid Goyal
5e7e512d8a Do not store Screen pointer on CursorTrail
The lifetime of the Screen pointer is managed by Window. Also we want
the cursor trail color to be the color of the active window cursor not the
color of the cursor in the last rendered window.
2024-10-20 10:20:42 +05:30
Rick Choi
0ef7a4eb1f fix build error in linux ci 2024-10-19 19:19:50 +09:00
Rick Choi
25caf90a80 minor refactor 2024-10-19 18:15:46 +09:00
Rick Choi
85bc56b813 move trail color decision logic to shader.c 2024-10-19 17:25:30 +09:00
Rick Choi
f64d2d27fb separate update_cursor_trail function in smaller pieces 2024-10-19 16:53:06 +09:00
Rick Choi
af8b563eb0 fix: cursor trail target not updated correctly 2024-10-19 16:30:54 +09:00
Rick Choi
d9515e91ed skip target cursor update, instead of skipping trail update when cursor is not valid target 2024-10-19 15:54:24 +09:00
Kovid Goyal
d684a91dfa code formatting 2024-10-18 11:21:34 +05:30
Kovid Goyal
811dc814a0 Rename variable with better name
This is the time at which the cursor was moved by the client not the
time at which it was updated.
2024-10-18 11:09:29 +05:30
Kovid Goyal
463c759bfb Allow changing the cursor trail threshold time independently of input_delay 2024-10-18 11:09:03 +05:30
Rick Choi
c31f5cf24a abbreviate ct->cursor_edge_x using macro 2024-10-16 08:21:01 +09:00
Rick Choi
bf7f0ebc46 handle paused_rendering state 2024-10-16 08:03:12 +09:00
Rick Choi
e07bcc2218 fix build error 2024-10-14 09:30:40 +09:00
Rick Choi
2bd008f8ca expose cursor_trail options 2024-10-13 21:10:20 +09:00
Rick Choi
5c5a3c32cf fix - trail now visible when cursor is underline 2024-10-13 18:47:19 +09:00
Rick Choi
20ba5e6918 disable cursor trail while live resize in progress 2024-10-13 18:15:42 +09:00
Rick Choi
fbd596a61f set trail color with cursor bg color 2024-10-13 18:10:24 +09:00
Rick Choi
89b9c6da8b don't draw cursor trail over the real cursor 2024-10-13 16:37:52 +09:00
Rick Choi
2e716cd4be use pixel size for threshold instead of arbitrary number 2024-10-13 14:58:07 +09:00
Rick Choi
45fb7b5026 cursor trail support cursor shape beam and underline 2024-10-13 14:36:10 +09:00
Rick Choi
761fb6f233 move update_cursor_trail out of child_monitor_c 2024-10-13 13:48:02 +09:00