input: keep applying input configs after first match
Device identifiers aren't so unique after all
This commit is contained in:
parent
147d9c2f90
commit
53f84b76f3
@ -235,7 +235,6 @@ fn handleNewInput(listener: *wl.Listener(*wlr.InputDevice), device: *wlr.InputDe
|
|||||||
for (self.input_configs.items) |*input_config| {
|
for (self.input_configs.items) |*input_config| {
|
||||||
if (mem.eql(u8, input_config.identifier, input_device_node.data.identifier)) {
|
if (mem.eql(u8, input_config.identifier, input_device_node.data.identifier)) {
|
||||||
input_config.apply(&input_device_node.data);
|
input_config.apply(&input_device_node.data);
|
||||||
break; // There will only ever be one InputConfig for any unique identifier;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user