mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
input config handler context
This commit is contained in:
parent
3dd915876d
commit
9e0595f26b
21 changed files with 69 additions and 25 deletions
|
|
@ -9,6 +9,8 @@ struct cmd_results *input_cmd_pointer_accel(int argc, char **argv) {
|
|||
if ((error = checkarg(argc, "pointer_accel", EXPECTED_AT_LEAST, 1))) {
|
||||
return error;
|
||||
}
|
||||
struct input_config *current_input_config =
|
||||
config->handler_context.input_config;
|
||||
if (!current_input_config) {
|
||||
return cmd_results_new(CMD_FAILURE,
|
||||
"pointer_accel", "No input device defined.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue