From cbb899740cd80dfd29afeb5426c60e6b41a23669 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 9 Aug 2023 22:03:24 +0200 Subject: rules: add layer and window xray rules --- src/render/OpenGL.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index d38f54ae..1719102b 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -26,8 +26,7 @@ inline const float fullVerts[] = { }; inline const float fanVertsFull[] = {-1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f}; -enum eDiscardMode -{ +enum eDiscardMode { DISCARD_OPAQUE = 1, DISCARD_ALPHA = 1 << 1 }; @@ -149,6 +148,7 @@ class CHyprOpenGLImpl { bool m_bReloadScreenShader = true; // at launch it can be set CWindow* m_pCurrentWindow = nullptr; // hack to get the current rendered window + SLayerSurface* m_pCurrentLayer = nullptr; // hack to get the current rendered layer std::unordered_map m_mWindowFramebuffers; std::unordered_map m_mLayerFramebuffers; @@ -185,6 +185,8 @@ class CHyprOpenGLImpl { void preBlurForCurrentMonitor(); + bool shouldUseNewBlurOptimizations(SLayerSurface* pLayer, CWindow* pWindow); + friend class CHyprRenderer; }; -- cgit v1.2.3