summaryrefslogtreecommitdiff
path: root/src/desktop/Workspace.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-11-20 10:32:50 +0000
committerVaxry <vaxry@vaxry.net>2024-11-20 10:32:50 +0000
commite5fa017172156fa5c70fedeaee5f51eace9577c0 (patch)
tree19a59d9b02f6c50a78446c9c3cb28a4ec464dd26 /src/desktop/Workspace.cpp
parentc4eda46d0ef022a17348623beec4154ba34af691 (diff)
internal: fix some misused configStringToInt conversions
fixes #8523
Diffstat (limited to 'src/desktop/Workspace.cpp')
-rw-r--r--src/desktop/Workspace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop/Workspace.cpp b/src/desktop/Workspace.cpp
index 2e1e91f2..8cddbb6b 100644
--- a/src/desktop/Workspace.cpp
+++ b/src/desktop/Workspace.cpp
@@ -332,7 +332,7 @@ bool CWorkspace::matchesStaticSelector(const std::string& selector_) {
const auto SHOULDBESPECIAL = configStringToInt(prop);
- if ((bool)SHOULDBESPECIAL != m_bIsSpecialWorkspace)
+ if (SHOULDBESPECIAL && (bool)*SHOULDBESPECIAL != m_bIsSpecialWorkspace)
return false;
continue;
}
@@ -367,7 +367,7 @@ bool CWorkspace::matchesStaticSelector(const std::string& selector_) {
const auto WANTSNAMED = configStringToInt(prop);
- if (WANTSNAMED != (m_iID <= -1337))
+ if (WANTSNAMED && *WANTSNAMED != (m_iID <= -1337))
return false;
continue;
}