From 2536630049f3847c0c44340f4706f3664c8b52fb Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:37:41 +0100 Subject: [PATCH] dwindle: fix moving windows on special --- src/layout/DwindleLayout.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 43079f59..d92966ca 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -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);