mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:05:58 +01:00
fix a minor bug with no gaps when only and groups
This commit is contained in:
parent
4a8274e5f0
commit
789eedd115
1 changed files with 2 additions and 4 deletions
|
@ -469,15 +469,11 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) {
|
||||||
|
|
||||||
PNEXT->position = PNODE->position;
|
PNEXT->position = PNODE->position;
|
||||||
PNEXT->size = PNODE->size;
|
PNEXT->size = PNODE->size;
|
||||||
|
|
||||||
applyNodeDataToWindow(PNEXT);
|
|
||||||
} else {
|
} else {
|
||||||
const auto PHEAD = PNODE->getGroupHead();
|
const auto PHEAD = PNODE->getGroupHead();
|
||||||
|
|
||||||
PNEXT->position = PHEAD->position;
|
PNEXT->position = PHEAD->position;
|
||||||
PNEXT->size = PHEAD->size;
|
PNEXT->size = PHEAD->size;
|
||||||
|
|
||||||
applyNodeDataToWindow(PNEXT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PNEXT->setGroupFocusedNode(PNEXT);
|
PNEXT->setGroupFocusedNode(PNEXT);
|
||||||
|
@ -485,6 +481,8 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) {
|
||||||
|
|
||||||
m_lDwindleNodesData.remove(*PNODE);
|
m_lDwindleNodesData.remove(*PNODE);
|
||||||
|
|
||||||
|
applyNodeDataToWindow(PNEXT);
|
||||||
|
|
||||||
if (!PNEXT->isGroupMember()) {
|
if (!PNEXT->isGroupMember()) {
|
||||||
// means we dissolved the group
|
// means we dissolved the group
|
||||||
recalculateMonitor(PNEXT->pWindow->m_iMonitorID);
|
recalculateMonitor(PNEXT->pWindow->m_iMonitorID);
|
||||||
|
|
Loading…
Reference in a new issue