diff --git a/sway/commands/touch/gesture/delay.c b/sway/commands/touch/gesture/delay.c index 235cb9ab7..0d52f3deb 100644 --- a/sway/commands/touch/gesture/delay.c +++ b/sway/commands/touch/gesture/delay.c @@ -30,7 +30,7 @@ struct cmd_results *touch_gesture_cmd_delay(int argc, char **argv) { config->handler_context.current_gesture->gesture; struct libtouch_action *action = - libtouch_gesture_add_delay(gesture, mode); + libtouch_gesture_add_delay(gesture, delay); config->handler_context.current_gesture_action = action; diff --git a/sway/commands/touch/gesture/threshold.c b/sway/commands/touch/gesture/threshold.c index bce1d3a27..e4e1c7445 100644 --- a/sway/commands/touch/gesture/threshold.c +++ b/sway/commands/touch/gesture/threshold.c @@ -26,7 +26,7 @@ struct cmd_results *touch_gesture_cmd_threshold(int argc, char **argv) { return cmd_results_new( 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); return cmd_results_new(CMD_SUCCESS, "Set threshold");