diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-14 15:37:41 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-14 15:37:45 +0100 |
| commit | 2536630049f3847c0c44340f4706f3664c8b52fb (patch) | |
| tree | 990fc84bc5f7cbf032c093bd226bdec3f52d8024 /src/layout/DwindleLayout.cpp | |
| parent | e6651334f264591cffef96738a2355b1b207eaa6 (diff) | |
dwindle: fix moving windows on special
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 6 |
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); |
