hide_cursor: Add an option to hide when typing

Add an option for the `hide_cursor` command to hide the cursor when
typing, i.e. whenever a key is pressed.
This commit is contained in:
Tamir Zahavi-Brunner 2020-09-07 01:44:13 +03:00 committed by Simon Ser
parent 4799cb0960
commit 96578aa91e
7 changed files with 91 additions and 15 deletions

View file

@ -229,11 +229,16 @@ correct seat.
Set this seat as the fallback seat. A fallback seat will attach any device
not explicitly attached to another seat (similar to a "default" seat).
*seat* <name> hide_cursor <timeout>
Hides the cursor image after the specified _timeout_ (in milliseconds)
has elapsed with no activity on that cursor. A timeout of 0 (default)
disables hiding the cursor. The minimal timeout is 100 and any value less
than that (aside from 0), will be increased to 100.
*seat* <name> hide_cursor <timeout>|when-typing [enable|disable]
Hides the cursor image after the specified event occured.
If _timeout_ is specified, then the cursor will be hidden after _timeout_
(in milliseconds) has elapsed with no activity on the cursor. A timeout of 0
(default) disables hiding the cursor. The minimal timeout is 100 and any
value less than that (aside from 0), will be increased to 100.
If _when-typing_ is enabled, then the cursor will be hidden whenever a key
is pressed.
*seat* <name> idle_inhibit <sources...>
Sets the set of input event sources which can prevent the seat from