mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
fix: reset node size when inserted into layout
Fixes a bug that caused nodes with a non 1.0 size_ratio to offset other nodes in a workspace when moved from another workspace.
This commit is contained in:
parent
1fd12b2688
commit
3c42fae982
2 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
# Upcoming
|
# Upcoming
|
||||||
|
|
||||||
- Fixed glitchy tab bar effects when switching workspaces with fade effect.
|
- Fixed glitchy tab bar effects when switching workspaces with fade effect.
|
||||||
|
- Fixed wrongly sized layout when moving resized nodes between workspaces.
|
||||||
|
|
||||||
# hl0.41.0 and before
|
# hl0.41.0 and before
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,7 @@ void Hy3Layout::insertNode(Hy3Node& node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
node.reparenting = true;
|
node.reparenting = true;
|
||||||
|
node.size_ratio = 1.0;
|
||||||
|
|
||||||
auto* monitor = g_pCompositor->getMonitorFromID(node.workspace->m_iMonitorID);
|
auto* monitor = g_pCompositor->getMonitorFromID(node.workspace->m_iMonitorID);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue