aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index e931f716..a59fbad6 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -775,6 +775,11 @@ void CKeybindManager::moveWorkspaceToMonitor(std::string args) {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(WORKSPACEID);
+ if (!PWORKSPACE) {
+ Debug::log(ERR, "moveWorkspaceToMonitor workspace doesn't exist!");
+ return;
+ }
+
g_pCompositor->moveWorkspaceToMonitor(PWORKSPACE, PMONITOR);
}