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:
Brian Ashworth 2018-12-27 00:32:15 -05:00 committed by emersion
parent 09bb71f650
commit 4d88c95790
14 changed files with 54 additions and 30 deletions

View file

@ -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) {