diff options
author | Vaxry <[email protected]> | 2024-04-03 14:28:15 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-03 14:28:15 +0100 |
commit | 64964c4e3beaf890fc9d12eb0e1804373f0fabe6 (patch) | |
tree | ad5228a020451b5990944f4d73d055dd95f395a4 /src/render/Renderer.cpp | |
parent | 3981f85e9487224e8c193160cbd7ae7137a11204 (diff) | |
download | Hyprland-64964c4e3beaf890fc9d12eb0e1804373f0fabe6.tar.gz Hyprland-64964c4e3beaf890fc9d12eb0e1804373f0fabe6.zip |
renderer: render back layer for workspace-less passes
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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]) { |