summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2017-12-12 08:29:37 -0500
committerTony Crisci <[email protected]>2017-12-12 08:29:37 -0500
commit163edc5a900fda58e006ed30e14ae10cc4aa13b3 (patch)
treea43e355091da4545bf9f16c63accb7d853170195 /sway/commands.c
parent462a451328a1d6f0b17d34b431d6bf3dec87c1ba (diff)
sway input device
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 7710c6ab..57f76ea9 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -71,28 +71,7 @@ void input_cmd_apply(struct input_config *input) {
}
current_input_config = input;
-
- if (input->identifier) {
- // Try to find the input device and apply configuration now. If
- // this is during startup then there will be no container and config
- // will be applied during normal "new input" event from wlc.
- /* TODO WLR
- struct libinput_device *device = NULL;
- for (int i = 0; i < input_devices->length; ++i) {
- device = input_devices->items[i];
- char* dev_identifier = libinput_dev_unique_id(device);
- if (!dev_identifier) {
- break;
- }
- int match = dev_identifier && strcmp(dev_identifier, input->identifier) == 0;
- free(dev_identifier);
- if (match) {
- apply_input_config(input, device);
- break;
- }
- }
- */
- }
+ sway_input_manager_apply_config(input_manager, input);
}
/**