seat_cmd_cursor: do not create non-existing seat

If a seat does not exist in seat_cmd_cursor, do not create it. A seat
without any attachments is useless since it will have no capabilities.

This changes `input_manager_get_seat` to have an additional argument
that dictates whether or not to create the seat if it does not exist.
This commit is contained in:
Brian Ashworth 2019-02-03 13:56:05 -05:00
parent 8e60efe0bf
commit 7299b9a6ca
4 changed files with 13 additions and 9 deletions

View file

@ -45,7 +45,7 @@ void input_manager_apply_seat_config(struct seat_config *seat_config);
struct sway_seat *input_manager_get_default_seat(void);
struct sway_seat *input_manager_get_seat(const char *seat_name);
struct sway_seat *input_manager_get_seat(const char *seat_name, bool create);
/**
* If none of the seat configs have a fallback setting (either true or false),