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:
parent
0b7e15d7ed
commit
bd74682096
2 changed files with 3 additions and 3 deletions
|
|
@ -85,7 +85,7 @@ input {
|
|||
accel_profile "flat"
|
||||
}
|
||||
// Framework 13 Touchpad
|
||||
input "PIXA3854:00 093A:0274 Touchpad" {
|
||||
input name="PIXA3854:00 093A:0274 Touchpad" {
|
||||
accel_profile "adaptive"
|
||||
click_method "clickfinger"
|
||||
natural_scroll "enabled"
|
||||
|
|
|
|||
|
|
@ -282,8 +282,8 @@ fn load(config: *Config, reader: *Io.Reader) !void {
|
|||
next_child_block = .pointer_binds;
|
||||
},
|
||||
.input => {
|
||||
pending_input_name = if (node.argcount() > 0)
|
||||
try utils.allocator.dupe(u8, utils.stripQuotes(node.arg(&parser, 0).?))
|
||||
pending_input_name = if (node.prop(&parser, "name")) |n|
|
||||
try utils.allocator.dupe(u8, utils.stripQuotes(n))
|
||||
else
|
||||
null;
|
||||
next_child_block = .input;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue