move workspaces and not windows on mon disconnect

This commit is contained in:
vaxerski
2022-05-30 20:44:14 +02:00
parent 1f4c938c67
commit eee9698ec9
4 changed files with 22 additions and 10 deletions

View File

@@ -357,7 +357,7 @@ void CHyprDwindleLayout::recalculateMonitor(const int& monid) {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace);
// Ignore any recalc events if we have a fullscreen window.
if (PWORKSPACE->m_bHasFullscreenWindow)
if (!PWORKSPACE || PWORKSPACE->m_bHasFullscreenWindow)
return;
const auto TOPNODE = getMasterNodeOnWorkspace(PMONITOR->activeWorkspace);