diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-07-29 17:19:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-29 17:19:25 +0200 |
| commit | fd74208453c7776816084649ec576aa8f37c7cbb (patch) | |
| tree | dc49a9749e1b7d7529d183d13af8d904ecfaee36 /src/managers/KeybindManager.cpp | |
| parent | e56699826f8abc47f82061dcb62cf04704d7aa95 (diff) | |
| parent | ef2417fbcb66e01bdf164c072081159a32ff944a (diff) | |
Merge pull request #446 from IanManske/movecurrentworkspace-nullmonitor-fix
Fix crash from moving current workspace to nonexistent (null) monitor.
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index cdc8f93f..b3729509 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1011,6 +1011,9 @@ void CKeybindManager::moveCurrentWorkspaceToMonitor(std::string args) { return; } + if (!PMONITOR) + return; + // get the current workspace const auto PCURRENTWORKSPACE = g_pCompositor->getWorkspaceByID(g_pCompositor->m_pLastMonitor->activeWorkspace); |
