diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-12 13:34:42 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-12 13:34:54 +0000 |
| commit | 69e314207d193eb67be0ae153d50c6c6bcee4b60 (patch) | |
| tree | 062189da23659b0206ed3b6287652c09959d2b59 /src/managers/input/Swipe.cpp | |
| parent | 1bfd4a2bff5f67872b868d519fbb45b32aa72b1f (diff) | |
internal: replace INT_MAX with WORKSPACE_INVALID
Diffstat (limited to 'src/managers/input/Swipe.cpp')
| -rw-r--r-- | src/managers/input/Swipe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index 360397eb..dba3d735 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -211,7 +211,7 @@ void CInputManager::onSwipeUpdate(wlr_pointer_swipe_update_event* e) { auto workspaceIDLeft = getWorkspaceIDFromString(*PSWIPENUMBER ? "-1" : (*PSWIPEUSER ? "r-1" : "m-1"), wsname); auto workspaceIDRight = getWorkspaceIDFromString(*PSWIPENUMBER ? "+1" : (*PSWIPEUSER ? "r+1" : "m+1"), wsname); - if ((workspaceIDLeft == INT_MAX || workspaceIDRight == INT_MAX || workspaceIDLeft == m_sActiveSwipe.pWorkspaceBegin->m_iID) && !*PSWIPENEW) { + if ((workspaceIDLeft == WORKSPACE_INVALID || workspaceIDRight == WORKSPACE_INVALID || workspaceIDLeft == m_sActiveSwipe.pWorkspaceBegin->m_iID) && !*PSWIPENEW) { m_sActiveSwipe.pWorkspaceBegin = nullptr; // invalidate the swipe return; } |
