diff options
Diffstat (limited to 'sway/commands/input/events.c')
-rw-r--r-- | sway/commands/input/events.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/commands/input/events.c b/sway/commands/input/events.c index a1bfbacd..2217f5ce 100644 --- a/sway/commands/input/events.c +++ b/sway/commands/input/events.c | |||
@@ -6,16 +6,18 @@ | |||
6 | #include "log.h" | 6 | #include "log.h" |
7 | 7 | ||
8 | struct cmd_results *input_cmd_events(int argc, char **argv) { | 8 | struct cmd_results *input_cmd_events(int argc, char **argv) { |
9 | wlr_log(L_DEBUG, "events for device: %s", | ||
10 | current_input_config->identifier); | ||
11 | struct cmd_results *error = NULL; | 9 | struct cmd_results *error = NULL; |
12 | if ((error = checkarg(argc, "events", EXPECTED_AT_LEAST, 1))) { | 10 | if ((error = checkarg(argc, "events", 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, "events", | 16 | return cmd_results_new(CMD_FAILURE, "events", |
17 | "No input device defined."); | 17 | "No input device defined."); |
18 | } | 18 | } |
19 | wlr_log(L_DEBUG, "events for device: %s", | ||
20 | current_input_config->identifier); | ||
19 | struct input_config *new_config = | 21 | struct input_config *new_config = |
20 | new_input_config(current_input_config->identifier); | 22 | new_input_config(current_input_config->identifier); |
21 | 23 | ||