From eaf0fb14c933e49342afb0ae421e992dd84df8b9 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 31 Jan 2023 12:15:34 +0000 Subject: [PATCH] reset layout-set render vars on floating --- src/layout/DwindleLayout.cpp | 4 ++++ src/layout/IHyprLayout.cpp | 2 ++ src/layout/MasterLayout.cpp | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 4ce2f66c..85993676 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -751,6 +751,10 @@ void CHyprDwindleLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscree // get back its' dimensions from position and size pWindow->m_vRealPosition = pWindow->m_vLastFloatingPosition; pWindow->m_vRealSize = pWindow->m_vLastFloatingSize; + + pWindow->m_sSpecialRenderData.rounding = true; + pWindow->m_sSpecialRenderData.border = true; + pWindow->m_sSpecialRenderData.decorate = true; } } else { // if it now got fullscreen, make it fullscreen diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 70959d3b..1cddcdaa 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -354,6 +354,8 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { g_pHyprRenderer->damageMonitor(g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID)); pWindow->m_sSpecialRenderData.rounding = true; + pWindow->m_sSpecialRenderData.border = true; + pWindow->m_sSpecialRenderData.decorate = true; if (pWindow == m_pLastTiledWindow) m_pLastTiledWindow = nullptr; diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 53b9c76b..2b1dd15a 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -534,6 +534,10 @@ void CHyprMasterLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscreen // get back its' dimensions from position and size pWindow->m_vRealPosition = pWindow->m_vLastFloatingPosition; pWindow->m_vRealSize = pWindow->m_vLastFloatingSize; + + pWindow->m_sSpecialRenderData.rounding = true; + pWindow->m_sSpecialRenderData.border = true; + pWindow->m_sSpecialRenderData.decorate = true; } } else { // if it now got fullscreen, make it fullscreen