input: keep applying input configs after first match

Device identifiers aren't so unique after all
This commit is contained in:
Leon Henrik Plickat 2022-02-02 00:27:29 +01:00 committed by Isaac Freund
parent 147d9c2f90
commit 53f84b76f3
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -235,7 +235,6 @@ fn handleNewInput(listener: *wl.Listener(*wlr.InputDevice), device: *wlr.InputDe
for (self.input_configs.items) |*input_config| {
if (mem.eql(u8, input_config.identifier, input_device_node.data.identifier)) {
input_config.apply(&input_device_node.data);
break; // There will only ever be one InputConfig for any unique identifier;
}
}
}