diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-31 18:47:32 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-31 18:47:32 +0200 |
| commit | 0f8712ed64e0b8c81cbbaa38e76edca4ffd422be (patch) | |
| tree | 895226400d0f2c4265b37d4c88217e0eaeb81e80 /src/managers/KeybindManager.cpp | |
| parent | 3e28a8b6907eb3297dd4751ddcd13609c7a74f5b (diff) | |
fix crash in moveWorkspaceToMonitor
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
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); } |
