diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-02-03 13:56:05 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-02-03 13:56:05 -0500 |
| commit | 3d6eec393a578c59aca28bd3a36352385c8246bc (patch) | |
| tree | 30972bfd6f93afc9ac339b3ae89c1aedbe509c11 /include | |
| parent | e28a0bc3db564df0e1060ce8088727136e83957a (diff) | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/input/input-manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index 8e8bf1f2..e166a237 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h @@ -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), |
