diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-20 11:32:07 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-20 11:34:57 -0500 |
commit | 9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf (patch) | |
tree | 1417f4b913875db24efc5418481ab057679680cd /sway/commands/input/click_method.c | |
parent | Merge pull request #1571 from acrisci/wlroots-modifiers-update (diff) | |
download | sway-9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf.tar.gz sway-9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf.tar.zst sway-9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf.zip |
input config handler context
Diffstat (limited to 'sway/commands/input/click_method.c')
-rw-r--r-- | sway/commands/input/click_method.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/input/click_method.c b/sway/commands/input/click_method.c index 22eb15f7..8f1f0aa7 100644 --- a/sway/commands/input/click_method.c +++ b/sway/commands/input/click_method.c | |||
@@ -6,12 +6,12 @@ | |||
6 | #include "log.h" | 6 | #include "log.h" |
7 | 7 | ||
8 | struct cmd_results *input_cmd_click_method(int argc, char **argv) { | 8 | struct cmd_results *input_cmd_click_method(int argc, char **argv) { |
9 | wlr_log(L_DEBUG, "click_method for device: %d %s", | ||
10 | current_input_config==NULL, current_input_config->identifier); | ||
11 | struct cmd_results *error = NULL; | 9 | struct cmd_results *error = NULL; |
12 | if ((error = checkarg(argc, "click_method", EXPECTED_AT_LEAST, 1))) { | 10 | if ((error = checkarg(argc, "click_method", EXPECTED_AT_LEAST, 1))) { |
13 | return error; | 11 | return error; |
14 | } | 12 | } |
13 | struct input_config *current_input_config = | ||
14 | config->handler_context.input_config; | ||
15 | if (!current_input_config) { | 15 | if (!current_input_config) { |
16 | return cmd_results_new(CMD_FAILURE, "click_method", | 16 | return cmd_results_new(CMD_FAILURE, "click_method", |
17 | "No input device defined."); | 17 | "No input device defined."); |