mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
hide_cursor: change to a seat subcommand
This makes hide_cursor a seat subcommand, which allows for seat specific timeouts.
This commit is contained in:
parent
09bb71f650
commit
4d88c95790
14 changed files with 54 additions and 30 deletions
|
|
@ -25,6 +25,7 @@ struct seat_config *new_seat_config(const char* name) {
|
|||
free(seat);
|
||||
return NULL;
|
||||
}
|
||||
seat->hide_cursor_timeout = -1;
|
||||
|
||||
return seat;
|
||||
}
|
||||
|
|
@ -137,6 +138,10 @@ void merge_seat_config(struct seat_config *dest, struct seat_config *source) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (source->hide_cursor_timeout != -1) {
|
||||
dest->hide_cursor_timeout = source->hide_cursor_timeout;
|
||||
}
|
||||
}
|
||||
|
||||
struct seat_config *copy_seat_config(struct seat_config *seat) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue