From c2b25f4701c98704303ab4ca9d008a29deb527b3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 2 Apr 2023 10:24:17 +0100 Subject: [PATCH] swallow: move swallowed on workspace change --- src/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); }