diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 23 |
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) { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | current_input_config = input; | 73 | current_input_config = input; |
74 | 74 | sway_input_manager_apply_config(input_manager, input); | |
75 | if (input->identifier) { | ||
76 | // Try to find the input device and apply configuration now. If | ||
77 | // this is during startup then there will be no container and config | ||
78 | // will be applied during normal "new input" event from wlc. | ||
79 | /* TODO WLR | ||
80 | struct libinput_device *device = NULL; | ||
81 | for (int i = 0; i < input_devices->length; ++i) { | ||
82 | device = input_devices->items[i]; | ||
83 | char* dev_identifier = libinput_dev_unique_id(device); | ||
84 | if (!dev_identifier) { | ||
85 | break; | ||
86 | } | ||
87 | int match = dev_identifier && strcmp(dev_identifier, input->identifier) == 0; | ||
88 | free(dev_identifier); | ||
89 | if (match) { | ||
90 | apply_input_config(input, device); | ||
91 | break; | ||
92 | } | ||
93 | } | ||
94 | */ | ||
95 | } | ||
96 | } | 75 | } |
97 | 76 | ||
98 | /** | 77 | /** |