diff options
author | 2016-05-14 23:42:02 +0300 | |
---|---|---|
committer | 2016-05-14 23:42:02 +0300 | |
commit | e73dde3b1057c8248eb24b3c15c99f398472eeba (patch) | |
tree | 26292b5ece4da11f72f7b3b486d2dc5c83caa026 /sway/commands.c | |
parent | Set Cairo and Pango as required dependencies (diff) | |
download | sway-e73dde3b1057c8248eb24b3c15c99f398472eeba.tar.gz sway-e73dde3b1057c8248eb24b3c15c99f398472eeba.tar.zst sway-e73dde3b1057c8248eb24b3c15c99f398472eeba.zip |
Support floating_scroll sideways
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 22621453..9c5309f9 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -726,6 +726,20 @@ static struct cmd_results *cmd_floating_scroll(int argc, char **argv) { | |||
726 | } else { | 726 | } else { |
727 | config->floating_scroll_down_cmd = join_args(argv + 1, argc - 1); | 727 | config->floating_scroll_down_cmd = join_args(argv + 1, argc - 1); |
728 | } | 728 | } |
729 | } else if (!strcasecmp("left", argv[0])) { | ||
730 | free(config->floating_scroll_left_cmd); | ||
731 | if (argc < 2) { | ||
732 | config->floating_scroll_left_cmd = strdup(""); | ||
733 | } else { | ||
734 | config->floating_scroll_left_cmd = join_args(argv + 1, argc - 1); | ||
735 | } | ||
736 | } else if (!strcasecmp("right", argv[0])) { | ||
737 | free(config->floating_scroll_right_cmd); | ||
738 | if (argc < 2) { | ||
739 | config->floating_scroll_right_cmd = strdup(""); | ||
740 | } else { | ||
741 | config->floating_scroll_right_cmd = join_args(argv + 1, argc - 1); | ||
742 | } | ||
729 | } else { | 743 | } else { |
730 | error = cmd_results_new(CMD_INVALID, "floating_scroll", "Unknown command: '%s'", argv[0]); | 744 | error = cmd_results_new(CMD_INVALID, "floating_scroll", "Unknown command: '%s'", argv[0]); |
731 | return error; | 745 | return error; |