Cursor: add on-focus-change option

Warp the cursor to the center of the focused view if the cursor is not
in the bounding box of that view already. This helps the user to keep
track of their cursor when they mostly use the keyboard and the cursor
becomes hidden most of the time, also helps trackpad/trackpoint users.
This commit is contained in:
shironeko
2022-08-01 20:31:50 -04:00
committed by Isaac Freund
parent 3141940efb
commit 8036ae2bd1
7 changed files with 65 additions and 26 deletions

View File

@ -64,7 +64,7 @@ function __riverctl_completion ()
"unmap") OPTS="-release" ;;
"attach-mode") OPTS="top bottom" ;;
"focus-follows-cursor") OPTS="disabled normal always" ;;
"set-cursor-warp") OPTS="disabled on-output-change" ;;
"set-cursor-warp") OPTS="disabled on-output-change on-focus-change" ;;
"hide-cursor") OPTS="timeout when-typing" ;;
*) return ;;
esac