Skip to content

Commit

Permalink
layout: check for specialworkspace in floating toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 24, 2023
1 parent 6bdc45e commit 3b65725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/IHyprLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b65725

Please sign in to comment.