aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-14 15:37:41 +0100
committervaxerski <[email protected]>2023-09-14 15:37:45 +0100
commit2536630049f3847c0c44340f4706f3664c8b52fb (patch)
tree990fc84bc5f7cbf032c093bd226bdec3f52d8024
parente6651334f264591cffef96738a2355b1b207eaa6 (diff)
downloadHyprland-2536630049f3847c0c44340f4706f3664c8b52fb.tar.gz
Hyprland-2536630049f3847c0c44340f4706f3664c8b52fb.zip
dwindle: fix moving windows on special
-rw-r--r--src/layout/DwindleLayout.cpp6
1 files 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);