mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 17:05:58 +01:00
animate float->tile properly
This commit is contained in:
parent
ba7b2d0db2
commit
39303fd2b0
1 changed files with 7 additions and 0 deletions
|
@ -267,7 +267,14 @@ void CHyprDwindleLayout::changeWindowFloatingMode(CWindow* pWindow) {
|
|||
const auto PNODE = getNodeFromWindow(pWindow);
|
||||
|
||||
if (!PNODE) {
|
||||
// save real pos cuz the func applies the default 5,5 mid
|
||||
const auto PSAVEDPOS = pWindow->m_vRealPosition;
|
||||
const auto PSAVEDSIZE = pWindow->m_vRealSize;
|
||||
|
||||
onWindowCreated(pWindow);
|
||||
|
||||
pWindow->m_vRealPosition = PSAVEDPOS;
|
||||
pWindow->m_vRealSize = PSAVEDSIZE;
|
||||
} else {
|
||||
onWindowRemoved(pWindow);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue