diff options
author | vaxerski <[email protected]> | 2023-04-02 10:24:17 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-04-02 10:24:17 +0100 |
commit | c2b25f4701c98704303ab4ca9d008a29deb527b3 (patch) | |
tree | 008822c624a9a9e6b630167ecf7cc6c0bfdbc971 | |
parent | 88a96110b73d74cbef37a60378941fa4f7318f1f (diff) | |
download | Hyprland-c2b25f4701c98704303ab4ca9d008a29deb527b3.tar.gz Hyprland-c2b25f4701c98704303ab4ca9d008a29deb527b3.zip |
swallow: move swallowed on workspace change
-rw-r--r-- | src/Window.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<void*>{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); } |