summaryrefslogtreecommitdiffstats
path: root/sway/commands/input/map_to_output.c
diff options
context:
space:
mode:
authorLibravatar Tadeo Kondrak <me@tadeo.ca>2019-11-01 11:37:29 -0600
committerLibravatar Simon Ser <contact@emersion.fr>2019-11-17 13:34:24 +0100
commit7f54495b5e62a65627cdb61f099e241f0594a6d9 (patch)
treea0480453d0721ab7df31a43c1e45c7fd7dbeb3d5 /sway/commands/input/map_to_output.c
parentImplement input map_to_region command (diff)
downloadsway-7f54495b5e62a65627cdb61f099e241f0594a6d9.tar.gz
sway-7f54495b5e62a65627cdb61f099e241f0594a6d9.tar.zst
sway-7f54495b5e62a65627cdb61f099e241f0594a6d9.zip
Use an enum instead of a marker string for map_to_
Diffstat (limited to 'sway/commands/input/map_to_output.c')
-rw-r--r--sway/commands/input/map_to_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/input/map_to_output.c b/sway/commands/input/map_to_output.c
index 6d623186..f60fb7d5 100644
--- a/sway/commands/input/map_to_output.c
+++ b/sway/commands/input/map_to_output.c
@@ -16,6 +16,7 @@ struct cmd_results *input_cmd_map_to_output(int argc, char **argv) {
16 return cmd_results_new(CMD_FAILURE, "No input device defined."); 16 return cmd_results_new(CMD_FAILURE, "No input device defined.");
17 } 17 }
18 18
19 ic->mapped_to = MAPPED_TO_OUTPUT;
19 ic->mapped_to_output = strdup(argv[0]); 20 ic->mapped_to_output = strdup(argv[0]);
20 21
21 return cmd_results_new(CMD_SUCCESS, NULL); 22 return cmd_results_new(CMD_SUCCESS, NULL);