diff options
author | vaxerski <[email protected]> | 2023-09-24 23:19:26 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-24 23:19:26 +0100 |
commit | 3d84490a3ec3b2ead80741953e7fec271dfbefd2 (patch) | |
tree | 195068d06fcf3bf656549c842d4768088a003449 | |
parent | f5149524e8232571d7929c9ac7708c10a8b51cc9 (diff) | |
download | Hyprland-3d84490a3ec3b2ead80741953e7fec271dfbefd2.tar.gz Hyprland-3d84490a3ec3b2ead80741953e7fec271dfbefd2.zip |
layout: check for specialworkspace in floating toggleunsafe-further-improvements
-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 |