aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/input/events.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-20 11:32:07 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-20 11:34:57 -0500
commit9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf (patch)
tree1417f4b913875db24efc5418481ab057679680cd /sway/commands/input/events.c
parentMerge pull request #1571 from acrisci/wlroots-modifiers-update (diff)
downloadsway-9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf.tar.gz
sway-9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf.tar.zst
sway-9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf.zip
input config handler context
Diffstat (limited to 'sway/commands/input/events.c')
-rw-r--r--sway/commands/input/events.c6
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
8struct cmd_results *input_cmd_events(int argc, char **argv) { 8struct 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