From 28734bab3098162381149bd458f00e615a920acc Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Fri, 15 Sep 2023 01:25:09 +0100 Subject: [PATCH] handle refreshGradient() on groupbar creation modified: src/render/decorations/CHyprGroupBarDecoration.cpp Signed-off-by: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> --- src/render/decorations/CHyprGroupBarDecoration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index c002a4a2..12489a90 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -12,6 +12,8 @@ static CTexture m_tGradientLockedInactive; CHyprGroupBarDecoration::CHyprGroupBarDecoration(CWindow* pWindow) : IHyprWindowDecoration(pWindow) { m_pWindow = pWindow; loadConfig(); + if (m_tGradientActive.m_iTexID == 0) + refreshGradients(); } CHyprGroupBarDecoration::~CHyprGroupBarDecoration() {}