diff --git a/src/libkwineffects/togglablestate.cpp b/src/libkwineffects/togglablestate.cpp index 64b57480e7..d3df109e93 100644 --- a/src/libkwineffects/togglablestate.cpp +++ b/src/libkwineffects/togglablestate.cpp @@ -154,6 +154,7 @@ static PinchDirection opposite(PinchDirection direction) case PinchDirection::Expanding: return PinchDirection::Contracting; } + return PinchDirection::Expanding; } static SwipeDirection opposite(SwipeDirection direction) @@ -170,6 +171,7 @@ static SwipeDirection opposite(SwipeDirection direction) case SwipeDirection::Right: return SwipeDirection::Left; } + return SwipeDirection::Invalid; } std::function TogglableState::progressCallback()