From 64964c4e3beaf890fc9d12eb0e1804373f0fabe6 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 3 Apr 2024 14:28:15 +0100 Subject: [PATCH] renderer: render back layer for workspace-less passes --- src/render/Renderer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index e738de9b..b43f3a2d 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -762,6 +762,13 @@ void CHyprRenderer::renderAllClientsForWorkspace(CMonitor* pMonitor, PHLWORKSPAC if (!pWorkspace) { // allow rendering without a workspace. In this case, just render layers. + g_pHyprOpenGL->blend(false); + if (!canSkipBackBufferClear(pMonitor)) { + if (*PRENDERTEX /* inverted cfg flag */) + g_pHyprOpenGL->clear(CColor(*PBACKGROUNDCOLOR)); + else + g_pHyprOpenGL->clearWithTex(); // will apply the hypr "wallpaper" + } g_pHyprOpenGL->blend(true); for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND]) {