diff options
author | 2016-09-05 10:15:57 -0400 | |
---|---|---|
committer | 2016-09-05 10:18:38 -0400 | |
commit | 0913eff9157a4ddc6c6d8b9b4ad23323ed6fcad3 (patch) | |
tree | 8485e59a100680aaf0c4040fffc449dd971342ec /sway/handlers.c | |
parent | Merge pull request #879 from zandrmartin/commands-refactor (diff) | |
download | sway-0913eff9157a4ddc6c6d8b9b4ad23323ed6fcad3.tar.gz sway-0913eff9157a4ddc6c6d8b9b4ad23323ed6fcad3.tar.zst sway-0913eff9157a4ddc6c6d8b9b4ad23323ed6fcad3.zip |
Add support for * input configs
Closes #852
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 47af7bd5..26da5407 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -132,6 +132,14 @@ static bool handle_input_created(struct libinput_device *device) { | |||
132 | for (i = 0; i < config->input_configs->length; ++i) { | 132 | for (i = 0; i < config->input_configs->length; ++i) { |
133 | struct input_config *cur = config->input_configs->items[i]; | 133 | struct input_config *cur = config->input_configs->items[i]; |
134 | if (strcasecmp(identifier, cur->identifier) == 0) { | 134 | if (strcasecmp(identifier, cur->identifier) == 0) { |
135 | sway_log(L_DEBUG, "Matched input config for %s", | ||
136 | identifier); | ||
137 | ic = cur; | ||
138 | break; | ||
139 | } | ||
140 | if (strcasecmp("*", cur->identifier) == 0) { | ||
141 | sway_log(L_DEBUG, "Matched wildcard input config for %s", | ||
142 | identifier); | ||
135 | ic = cur; | 143 | ic = cur; |
136 | break; | 144 | break; |
137 | } | 145 | } |