renderer: use xray for background blur on small() surfaces

ref #4050
This commit is contained in:
Vaxry 2023-12-06 20:17:40 +00:00
parent d74607e414
commit 5489f9f07a
3 changed files with 9 additions and 6 deletions

View file

@ -120,7 +120,7 @@ class CHyprOpenGLImpl {
void end();
void renderRect(CBox*, const CColor&, int round = 0);
void renderRectWithBlur(CBox*, const CColor&, int round = 0, float blurA = 1.f);
void renderRectWithBlur(CBox*, const CColor&, int round = 0, float blurA = 1.f, bool xray = false);
void renderRectWithDamage(CBox*, const CColor&, CRegion* damage, int round = 0);
void renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
void renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
@ -142,6 +142,7 @@ class CHyprOpenGLImpl {
void makeLayerSnapshot(SLayerSurface*);
void renderSnapshot(CWindow**);
void renderSnapshot(SLayerSurface**);
bool shouldUseNewBlurOptimizations(SLayerSurface* pLayer, CWindow* pWindow);
void clear(const CColor&);
void clearWithTex();
@ -223,8 +224,6 @@ class CHyprOpenGLImpl {
void preBlurForCurrentMonitor();
bool shouldUseNewBlurOptimizations(SLayerSurface* pLayer, CWindow* pWindow);
bool passRequiresIntrospection(CMonitor* pMonitor);
friend class CHyprRenderer;