summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 6a523eec..c71fe652 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -452,8 +452,10 @@ void CWindow::moveToWorkspace(PHLWORKSPACE pWorkspace) {
}
if (const auto SWALLOWED = m_pSwallowed.lock()) {
- SWALLOWED->moveToWorkspace(pWorkspace);
- SWALLOWED->m_pMonitor = m_pMonitor;
+ if (SWALLOWED->m_bCurrentlySwallowed) {
+ SWALLOWED->moveToWorkspace(pWorkspace);
+ SWALLOWED->m_pMonitor = m_pMonitor;
+ }
}
// update xwayland coords