keybinds: Added toggleswallow dispatcher (#5548)

* Added `toggleswallow` dispatcher

* clang-format

* Removed brackets for 1-line if
This commit is contained in:
Tom Benham
2025-02-05 10:56:41 +01:00
committed by GitHub
parent 3b99e906df
commit 84c9baecc6
5 changed files with 38 additions and 7 deletions

View File

@@ -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