diff --git a/src/Window.cpp b/src/Window.cpp index dc24b71d..3942114b 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -284,6 +284,11 @@ void CWindow::moveToWorkspace(int workspaceID) { EMIT_HOOK_EVENT("moveWindow", (std::vector{this, PWORKSPACE})); } + if (m_pSwallowed) { + m_pSwallowed->moveToWorkspace(workspaceID); + m_pSwallowed->m_iMonitorID = m_iMonitorID; + } + if (PMONITOR) g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(m_pWLSurface.wlr(), PMONITOR->scale); }