Merge pull request #30 from pop-os/fix/click_method

config: Set click_method for input devices
This commit is contained in:
Victoria Brekenfeld 2022-08-09 14:10:40 -06:00 committed by GitHub
commit 68d9b2a82a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,6 +431,16 @@ impl Config {
);
}
}
if let Some(method) = config.click_method {
if let Err(err) = device.config_click_set_method(method) {
slog_scope::warn!(
"Failed to apply click method {:?} for device {:?}: {:?}",
method,
device.name(),
err
);
}
}
if let Some(dwt) = config.disable_while_typing {
if let Err(err) = device.config_dwt_set_enabled(dwt) {
slog_scope::warn!(