diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-02 16:54:19 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-02 16:54:19 +0200 |
| commit | f5cdb5b95e13928316e83c32f0351654734a2bde (patch) | |
| tree | 95439d0f57759fbf646f4bbe8283782b5b12bc47 /src/helpers/MiscFunctions.cpp | |
| parent | 7afcf656bd25e2ed6b33bae1cbbc4a62d66e1938 (diff) | |
Fix special in m+1 m-1
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 7a947832..2cdadbc8 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -191,7 +191,7 @@ int getWorkspaceIDFromString(const std::string& in, std::string& outName) { searchID = lowestID; } - if (const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(searchID); PWORKSPACE) { + if (const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(searchID); PWORKSPACE && PWORKSPACE->m_iID != SPECIAL_WORKSPACE_ID) { if (PWORKSPACE->m_iMonitorID == g_pCompositor->m_pLastMonitor->ID) { currentID = PWORKSPACE->m_iID; |
