Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqa-Ib committed Sep 24, 2024
1 parent e0b4c56 commit ae5709c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/layout/DwindleLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ void CHyprDwindleLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dir

return;
}
// auto group the window if the last window is a floating group

// auto group the new tiling window if the focused window is a floating group
const auto PLASTWINDOW = g_pCompositor->m_pLastWindow;
if (*AUTOGROUP && PLASTWINDOW && PLASTWINDOW->m_bIsFloating && PLASTWINDOW->m_sGroupData.pNextWindow // target is a floating group
&& pWindow->canBeGroupedInto(PLASTWINDOW.lock())) {
Expand Down
3 changes: 2 additions & 1 deletion src/layout/MasterLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire

return;
}
// auto group the window if the last window is a floating group

// auto group the new tiling window if the focused window is a floating group
const auto PLASTWINDOW = g_pCompositor->m_pLastWindow;
if (*AUTOGROUP && PLASTWINDOW && PLASTWINDOW->m_bIsFloating && PLASTWINDOW->m_sGroupData.pNextWindow // target is a floating group
&& pWindow->canBeGroupedInto(PLASTWINDOW.lock())) {
Expand Down

0 comments on commit ae5709c

Please sign in to comment.