monitor: recalc layout on switched ws

This commit is contained in:
vaxerski 2023-04-16 01:11:57 +01:00
parent edad24c257
commit afc887d941

View file

@ -516,6 +516,8 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) {
g_pInputManager->refocus(); g_pInputManager->refocus();
} }
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID);
// set some flags and fire event // set some flags and fire event
g_pCompositor->deactivateAllWLRWorkspaces(pWorkspace->m_pWlrHandle); g_pCompositor->deactivateAllWLRWorkspaces(pWorkspace->m_pWlrHandle);
pWorkspace->setActive(true); pWorkspace->setActive(true);