Fixed switch-statement nit
This commit is contained in:
parent
84c1b9c7f3
commit
8193bb6e4b
|
@ -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
|
// Reset the swipe if any other button is pressed during the swipe
|
||||||
struct sway_workspace *focused_ws = seat_get_focused_workspace(seat);
|
struct sway_workspace *focused_ws = seat_get_focused_workspace(seat);
|
||||||
if (focused_ws) {
|
if (focused_ws) {
|
||||||
|
struct sway_output *output = focused_ws->output;
|
||||||
|
struct workspace_scroll workspace_scroll_default = workspace_scroll_get_default();
|
||||||
switch (e->gestures.type) {
|
switch (e->gestures.type) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
case GESTURE_TYPE_WORKSPACE_SWIPE_HORIZONTAL:;
|
case GESTURE_TYPE_WORKSPACE_SWIPE_HORIZONTAL:
|
||||||
case GESTURE_TYPE_WORKSPACE_SWIPE_VERTICAL:;
|
case GESTURE_TYPE_WORKSPACE_SWIPE_VERTICAL:
|
||||||
struct sway_output *output = focused_ws->output;
|
|
||||||
struct workspace_scroll workspace_scroll_default = workspace_scroll_get_default();
|
|
||||||
if (!workspace_scroll_equal(&output->workspace_scroll, &workspace_scroll_default)) {
|
if (!workspace_scroll_equal(&output->workspace_scroll, &workspace_scroll_default)) {
|
||||||
workspace_scroll_reset(seat, NULL);
|
workspace_scroll_reset(seat, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue