3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-03-03 05:44:49 +00:00

Fix crash from moving current workspace to nonexistent (null) monitor.

This commit is contained in:
Ian Manske
2022-07-29 10:59:31 -04:00
parent fd999100f0
commit ef2417fbcb

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