Skip to content

Commit

Permalink
dwindle: fix moving windows on special
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 14, 2023
1 parent e665133 commit 2536630
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/layout/DwindleLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,10 @@ void CHyprDwindleLayout::moveWindowTo(CWindow* pWindow, const std::string& dir)

const auto PMONITORFOCAL = g_pCompositor->getMonitorFromVector(focalPoint);

pWindow->moveToWorkspace(PMONITORFOCAL->activeWorkspace);
pWindow->m_iMonitorID = PMONITORFOCAL->ID;
if (PMONITORFOCAL->ID != pWindow->m_iMonitorID) {
pWindow->moveToWorkspace(PMONITORFOCAL->activeWorkspace);
pWindow->m_iMonitorID = PMONITORFOCAL->ID;
}

onWindowCreatedTiling(pWindow);

Expand Down

0 comments on commit 2536630

Please sign in to comment.