diff options
author | Vaxry <[email protected]> | 2024-08-07 13:31:27 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-08-07 13:31:32 +0200 |
commit | 2e3dc17a7e56c609659514af13ce911481334be3 (patch) | |
tree | f15e84ba201631ff6dd173f2fb3b4fbfcd6f8752 /src/render/Renderer.cpp | |
parent | b2717cf7fd86774b450b58f6263291e277553e63 (diff) | |
download | Hyprland-2e3dc17a7e56c609659514af13ce911481334be3.tar.gz Hyprland-2e3dc17a7e56c609659514af13ce911481334be3.zip |
renderer: guard layer in renderLayer
ref #7181
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 7794d476..8c29bef4 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -716,6 +716,9 @@ void CHyprRenderer::renderWindow(PHLWINDOW pWindow, CMonitor* pMonitor, timespec } void CHyprRenderer::renderLayer(PHLLS pLayer, CMonitor* pMonitor, timespec* time, bool popups) { + if (!pLayer) + return; + static auto PDIMAROUND = CConfigValue<Hyprlang::FLOAT>("decoration:dim_around"); if (*PDIMAROUND && pLayer->dimAround && !m_bRenderingSnapshot && !popups) { |