aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-08-09 22:03:24 +0200
committervaxerski <[email protected]>2023-08-09 22:03:31 +0200
commitcbb899740cd80dfd29afeb5426c60e6b41a23669 (patch)
treec7053a32750448e7d84a7d13a1b874d423c4ac21 /src/render/OpenGL.hpp
parentfe9453c6432ccdb3935ff6e9aa32f9d985aff577 (diff)
downloadHyprland-cbb899740cd80dfd29afeb5426c60e6b41a23669.tar.gz
Hyprland-cbb899740cd80dfd29afeb5426c60e6b41a23669.zip
rules: add layer and window xray rules
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp6
1 files changed, 4 insertions, 2 deletions
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<CWindow*, CFramebuffer> m_mWindowFramebuffers;
std::unordered_map<SLayerSurface*, CFramebuffer> m_mLayerFramebuffers;
@@ -185,6 +185,8 @@ class CHyprOpenGLImpl {
void preBlurForCurrentMonitor();
+ bool shouldUseNewBlurOptimizations(SLayerSurface* pLayer, CWindow* pWindow);
+
friend class CHyprRenderer;
};