From 8193bb6e4b6f7083ba826036678182f94c2ac195 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Fri, 26 Jan 2024 19:38:19 +0100 Subject: [PATCH] Fixed switch-statement nit --- sway/input/seatop_default.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 1e52c989..6697c092 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c @@ -1121,13 +1121,13 @@ static void handle_rebase(struct sway_seat *seat, uint32_t time_msec) { // Reset the swipe if any other button is pressed during the swipe struct sway_workspace *focused_ws = seat_get_focused_workspace(seat); if (focused_ws) { + struct sway_output *output = focused_ws->output; + struct workspace_scroll workspace_scroll_default = workspace_scroll_get_default(); switch (e->gestures.type) { default: break; - case GESTURE_TYPE_WORKSPACE_SWIPE_HORIZONTAL:; - case GESTURE_TYPE_WORKSPACE_SWIPE_VERTICAL:; - struct sway_output *output = focused_ws->output; - struct workspace_scroll workspace_scroll_default = workspace_scroll_get_default(); + case GESTURE_TYPE_WORKSPACE_SWIPE_HORIZONTAL: + case GESTURE_TYPE_WORKSPACE_SWIPE_VERTICAL: if (!workspace_scroll_equal(&output->workspace_scroll, &workspace_scroll_default)) { workspace_scroll_reset(seat, NULL); }