mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-09 23:09:49 +01:00
groups: honor group lock window rule (#8782)
This commit is contained in:
parent
52ee7a8748
commit
8e8073c421
2 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,7 @@ bool IHyprLayout::onWindowCreatedAutoGroup(PHLWINDOW pWindow) {
|
||||||
(*USECURRPOS ? OPENINGON : OPENINGON->getGroupTail())->insertWindowToGroup(pWindow);
|
(*USECURRPOS ? OPENINGON : OPENINGON->getGroupTail())->insertWindowToGroup(pWindow);
|
||||||
|
|
||||||
OPENINGON->setGroupCurrent(pWindow);
|
OPENINGON->setGroupCurrent(pWindow);
|
||||||
|
pWindow->applyGroupRules();
|
||||||
pWindow->updateWindowDecos();
|
pWindow->updateWindowDecos();
|
||||||
recalculateWindow(pWindow);
|
recalculateWindow(pWindow);
|
||||||
|
|
||||||
|
@ -364,6 +365,7 @@ void IHyprLayout::onEndDragWindow() {
|
||||||
static auto USECURRPOS = CConfigValue<Hyprlang::INT>("group:insert_after_current");
|
static auto USECURRPOS = CConfigValue<Hyprlang::INT>("group:insert_after_current");
|
||||||
(*USECURRPOS ? pWindow : pWindow->getGroupTail())->insertWindowToGroup(DRAGGINGWINDOW);
|
(*USECURRPOS ? pWindow : pWindow->getGroupTail())->insertWindowToGroup(DRAGGINGWINDOW);
|
||||||
pWindow->setGroupCurrent(DRAGGINGWINDOW);
|
pWindow->setGroupCurrent(DRAGGINGWINDOW);
|
||||||
|
DRAGGINGWINDOW->applyGroupRules();
|
||||||
DRAGGINGWINDOW->updateWindowDecos();
|
DRAGGINGWINDOW->updateWindowDecos();
|
||||||
|
|
||||||
if (!DRAGGINGWINDOW->getDecorationByType(DECORATION_GROUPBAR))
|
if (!DRAGGINGWINDOW->getDecorationByType(DECORATION_GROUPBAR))
|
||||||
|
|
|
@ -468,6 +468,7 @@ bool CHyprGroupBarDecoration::onEndWindowDragOnDeco(const Vector2D& pos, PHLWIND
|
||||||
std::swap(pDraggedHead->m_sGroupData.head, pWindowInsertEnd->m_sGroupData.head);
|
std::swap(pDraggedHead->m_sGroupData.head, pWindowInsertEnd->m_sGroupData.head);
|
||||||
|
|
||||||
m_pWindow->setGroupCurrent(pDraggedWindow);
|
m_pWindow->setGroupCurrent(pDraggedWindow);
|
||||||
|
pDraggedWindow->applyGroupRules();
|
||||||
pDraggedWindow->updateWindowDecos();
|
pDraggedWindow->updateWindowDecos();
|
||||||
g_pLayoutManager->getCurrentLayout()->recalculateWindow(pDraggedWindow);
|
g_pLayoutManager->getCurrentLayout()->recalculateWindow(pDraggedWindow);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue