Merge pull request #446 from IanManske/movecurrentworkspace-nullmonitor-fix

Fix crash from moving current workspace to nonexistent (null) monitor.
This commit is contained in:
Vaxry 2022-07-29 17:19:25 +02:00 committed by GitHub
commit fd74208453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);