From 493fc009533b5d5b94c5d11d32bcd730094e5669 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 26 Nov 2022 18:48:16 +0000 Subject: [PATCH] fix decorations missing after no_gaps_when_only toggle floating --- src/layout/DwindleLayout.cpp | 4 ++++ src/layout/MasterLayout.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index cc6051de..c4b1e5a9 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -457,6 +457,10 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) { return; } + pWindow->m_sSpecialRenderData.rounding = true; + pWindow->m_sSpecialRenderData.border = true; + pWindow->m_sSpecialRenderData.decorate = true; + if (pWindow->m_bIsFullscreen) g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL); diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 969eedb6..683dcdce 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -111,6 +111,10 @@ void CHyprMasterLayout::onWindowRemovedTiling(CWindow* pWindow) { if (!PNODE) return; + pWindow->m_sSpecialRenderData.rounding = true; + pWindow->m_sSpecialRenderData.border = true; + pWindow->m_sSpecialRenderData.decorate = true; + if (pWindow->m_bIsFullscreen) g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);