Update input config to use "name=" property

This is to match behavior with how the new per-host configuration works
This commit is contained in:
Ben Buhse 2026-02-11 14:12:23 -06:00
commit bd74682096
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
2 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ input {
accel_profile "flat" accel_profile "flat"
} }
// Framework 13 Touchpad // Framework 13 Touchpad
input "PIXA3854:00 093A:0274 Touchpad" { input name="PIXA3854:00 093A:0274 Touchpad" {
accel_profile "adaptive" accel_profile "adaptive"
click_method "clickfinger" click_method "clickfinger"
natural_scroll "enabled" natural_scroll "enabled"

View file

@ -282,8 +282,8 @@ fn load(config: *Config, reader: *Io.Reader) !void {
next_child_block = .pointer_binds; next_child_block = .pointer_binds;
}, },
.input => { .input => {
pending_input_name = if (node.argcount() > 0) pending_input_name = if (node.prop(&parser, "name")) |n|
try utils.allocator.dupe(u8, utils.stripQuotes(node.arg(&parser, 0).?)) try utils.allocator.dupe(u8, utils.stripQuotes(n))
else else
null; null;
next_child_block = .input; next_child_block = .input;