No description
Adds a cursor_hide_timeout config key (Option<u32> seconds) to CosmicCompConfig. When set, the cursor is hidden after the configured period of pointer inactivity and revealed again by any pointer event. Touch input does not count as activity (no visible cursor to surface). Implementation: - Per-seat hidden flag, calloop timer token, and last-armed Instant on CursorStateInner. - notify_cursor_activity called from each pointer-related input branch (motion, button, axis, tablet) resets the flag and reschedules the timer; rapid successive calls are coalesced behind a 100ms throttle so high-frequency mice don't churn the calloop timer source. - On timer fire, the hidden flag is set, draw_cursor short-circuits to an empty element list, and a render is scheduled. Active pointer grabs (drags, resizes) suppress the hide. - Config reload arms or cancels the timer immediately; None as the configured value collapses the cancel path into the same function. Closes #2231. Drafted with Claude (Anthropic); reviewed and tested by the committer. |
||
|---|---|---|
| .github | ||
| cosmic-comp-config | ||
| data | ||
| debian | ||
| examples | ||
| resources | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| i18n.toml | ||
| LICENSE | ||
| Makefile | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||