Skip to content

Commit

Permalink
update groups on movewindow
Browse files Browse the repository at this point in the history
modified:   src/layout/DwindleLayout.cpp
modified:   src/layout/MasterLayout.cpp
  • Loading branch information
anon1efergwerfwer committed Jan 26, 2025
1 parent bb5b09d commit 38ebf7c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/layout/DwindleLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,15 @@ void CHyprDwindleLayout::moveWindowTo(PHLWINDOW pWindow, const std::string& dir,
pWindow->m_pMonitor = PMONITORFOCAL;
}

pWindow->updateGroupOutputs();
if (!pWindow->m_sGroupData.pNextWindow.expired()) {
PHLWINDOW next = pWindow->m_sGroupData.pNextWindow.lock();
while (next != pWindow) {
next->updateToplevel();
next = next->m_sGroupData.pNextWindow.lock();
}
}

onWindowCreatedTiling(pWindow);

m_vOverrideFocalPoint.reset();
Expand Down
9 changes: 9 additions & 0 deletions src/layout/MasterLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,15 @@ void CHyprMasterLayout::moveWindowTo(PHLWINDOW pWindow, const std::string& dir,
if (silent)
g_pCompositor->focusWindow(PWINDOW2);
}

pWindow->updateGroupOutputs();
if (!pWindow->m_sGroupData.pNextWindow.expired()) {
PHLWINDOW next = pWindow->m_sGroupData.pNextWindow.lock();
while (next != pWindow) {
next->updateToplevel();
next = next->m_sGroupData.pNextWindow.lock();
}
}
}

void CHyprMasterLayout::switchWindows(PHLWINDOW pWindow, PHLWINDOW pWindow2) {
Expand Down

0 comments on commit 38ebf7c

Please sign in to comment.