Fix errors

This commit is contained in:
Samuel Grahn 2019-04-22 14:12:00 +02:00
parent 068c777de2
commit 76ec7d9433
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ struct cmd_results *touch_gesture_cmd_delay(int argc, char **argv) {
config->handler_context.current_gesture->gesture; config->handler_context.current_gesture->gesture;
struct libtouch_action *action = struct libtouch_action *action =
libtouch_gesture_add_delay(gesture, mode); libtouch_gesture_add_delay(gesture, delay);
config->handler_context.current_gesture_action = action; config->handler_context.current_gesture_action = action;

View file

@ -26,7 +26,7 @@ struct cmd_results *touch_gesture_cmd_threshold(int argc, char **argv) {
return cmd_results_new( return cmd_results_new(
CMD_INVALID, "Invalid threshold: %s", argv[0]); CMD_INVALID, "Invalid threshold: %s", argv[0]);
} }
sway_log(SWAY_DEBUG, "Set threshold %d", threshold); sway_log(SWAY_DEBUG, "Set threshold %ld", threshold);
libtouch_action_set_threshold(current, threshold); libtouch_action_set_threshold(current, threshold);
return cmd_results_new(CMD_SUCCESS, return cmd_results_new(CMD_SUCCESS,
"Set threshold"); "Set threshold");