aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/input-manager.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-03 13:56:05 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-03 14:01:29 -0500
commit7299b9a6ca3658852f2ff41b05f6aaa86ff90d81 (patch)
tree8e54c4ee9dd0ffceecf5a99f91a341fd1d714c5e /include/sway/input/input-manager.h
parentMerge pull request #3563 from vilhalmer/fix-wildcard-seat-constrain-crashes-d... (diff)
downloadsway-7299b9a6ca3658852f2ff41b05f6aaa86ff90d81.tar.gz
sway-7299b9a6ca3658852f2ff41b05f6aaa86ff90d81.tar.zst
sway-7299b9a6ca3658852f2ff41b05f6aaa86ff90d81.zip
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/sway/input/input-manager.h')
-rw-r--r--include/sway/input/input-manager.h2
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);
45 45
46struct sway_seat *input_manager_get_default_seat(void); 46struct sway_seat *input_manager_get_default_seat(void);
47 47
48struct sway_seat *input_manager_get_seat(const char *seat_name); 48struct sway_seat *input_manager_get_seat(const char *seat_name, bool create);
49 49
50/** 50/**
51 * If none of the seat configs have a fallback setting (either true or false), 51 * If none of the seat configs have a fallback setting (either true or false),