From bb958a9e139d6ae90d45fe360287d33e229f971e Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Fri, 4 Jul 2025 09:58:37 +0200 Subject: pass: overload TexPass constructor overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable. --- src/render/decorations/CHyprGroupBarDecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/decorations/CHyprGroupBarDecoration.cpp') diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index 9a17a3fe..e577658a 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -256,7 +256,7 @@ void CHyprGroupBarDecoration::draw(PHLMONITOR pMonitor, float const& a) { data.tex = titleTex; data.box = rect; data.a = a; - g_pHyprRenderer->m_renderPass.add(makeShared(data)); + g_pHyprRenderer->m_renderPass.add(makeShared(std::move(data))); } } -- cgit v1.2.3