summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index dee03d71..8d199467 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -121,6 +121,9 @@ void input_cmd_apply(struct input_config *input) {
121 for (int i = 0; i < input_devices->length; ++i) { 121 for (int i = 0; i < input_devices->length; ++i) {
122 device = input_devices->items[i]; 122 device = input_devices->items[i];
123 char* dev_identifier = libinput_dev_unique_id(device); 123 char* dev_identifier = libinput_dev_unique_id(device);
124 if (!dev_identifier) {
125 break;
126 }
124 int match = dev_identifier && strcmp(dev_identifier, input->identifier) == 0; 127 int match = dev_identifier && strcmp(dev_identifier, input->identifier) == 0;
125 free(dev_identifier); 128 free(dev_identifier);
126 if (match) { 129 if (match) {