diff options
author | vaxerski <[email protected]> | 2022-05-21 21:20:56 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-05-21 21:20:56 +0200 |
commit | ef4ab2edd419a4d207e151d60244e4d369f6548b (patch) | |
tree | 0a84bab6550861eb857d65c67cdd06b108ff312e | |
parent | 1c423ec997160bfc89d754761dc0f0da4b08238d (diff) | |
download | Hyprland-ef4ab2edd419a4d207e151d60244e4d369f6548b.tar.gz Hyprland-ef4ab2edd419a4d207e151d60244e4d369f6548b.zip |
fix dwindle leaving artifacts on toggle pseudo
-rw-r--r-- | src/layout/DwindleLayout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 5c133336..0f77aac0 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -198,9 +198,6 @@ void CHyprDwindleLayout::onWindowCreated(CWindow* pWindow) { applyNodeDataToWindow(PNODE); - pWindow->m_vRealPosition.setValue(PNODE->position + PNODE->size / 2.f); - pWindow->m_vRealSize.setValue(Vector2D(5, 5)); - return; } @@ -387,6 +384,9 @@ void CHyprDwindleLayout::changeWindowFloatingMode(CWindow* pWindow) { pWindow->m_vRealPosition.setValue(PSAVEDPOS); pWindow->m_vRealSize.setValue(PSAVEDSIZE); + + // fix pseudo leaving artifacts + g_pHyprRenderer->damageMonitor(g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID)); } else { onWindowRemoved(pWindow); |