From afc887d94123ba5e5f715839c4aba43daf0c7804 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 16 Apr 2023 01:11:57 +0100 Subject: [PATCH] monitor: recalc layout on switched ws --- src/helpers/Monitor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 47ed79ea..c271e066 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -516,6 +516,8 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) { g_pInputManager->refocus(); } + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID); + // set some flags and fire event g_pCompositor->deactivateAllWLRWorkspaces(pWorkspace->m_pWlrHandle); pWorkspace->setActive(true);