From ef2417fbcb66e01bdf164c072081159a32ff944a Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Fri, 29 Jul 2022 10:59:31 -0400 Subject: [PATCH] Fix crash from moving current workspace to nonexistent (null) monitor. --- src/managers/KeybindManager.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);