diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-24 23:20:15 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-24 23:20:15 +0100 |
| commit | 3b657257ecb7628a12a4fe72e733a60f031bfec2 (patch) | |
| tree | 25594ec86c00aa005671c8508ba302b898300368 /src/layout/IHyprLayout.cpp | |
| parent | 6bdc45e9cec9aca56aa676a4e185e58b5d82c7e9 (diff) | |
layout: check for specialworkspace in floating toggle
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 637eeb2a..61bc2266 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -408,7 +408,7 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { if (!TILED) { const auto PNEWMON = g_pCompositor->getMonitorFromVector(pWindow->m_vRealPosition.vec() + pWindow->m_vRealSize.vec() / 2.f); pWindow->m_iMonitorID = PNEWMON->ID; - pWindow->moveToWorkspace(PNEWMON->activeWorkspace); + pWindow->moveToWorkspace(PNEWMON->specialWorkspaceID != 0 ? PNEWMON->specialWorkspaceID : PNEWMON->activeWorkspace); pWindow->updateGroupOutputs(); // save real pos cuz the func applies the default 5,5 mid |
