mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
pass/surface: make sure popup blurs are marked for require live blur
fixes #10535
This commit is contained in:
@@ -195,6 +195,9 @@ bool CSurfacePassElement::needsLiveBlur() {
|
|||||||
if (!m_data.pLS && !m_data.pWindow)
|
if (!m_data.pLS && !m_data.pWindow)
|
||||||
return BLUR;
|
return BLUR;
|
||||||
|
|
||||||
|
if (m_data.popup)
|
||||||
|
return BLUR;
|
||||||
|
|
||||||
const bool NEWOPTIM = g_pHyprOpenGL->shouldUseNewBlurOptimizations(m_data.pLS, m_data.pWindow);
|
const bool NEWOPTIM = g_pHyprOpenGL->shouldUseNewBlurOptimizations(m_data.pLS, m_data.pWindow);
|
||||||
|
|
||||||
return BLUR && !NEWOPTIM;
|
return BLUR && !NEWOPTIM;
|
||||||
@@ -209,6 +212,9 @@ bool CSurfacePassElement::needsPrecomputeBlur() {
|
|||||||
if (!m_data.pLS && !m_data.pWindow)
|
if (!m_data.pLS && !m_data.pWindow)
|
||||||
return BLUR;
|
return BLUR;
|
||||||
|
|
||||||
|
if (m_data.popup)
|
||||||
|
return false;
|
||||||
|
|
||||||
const bool NEWOPTIM = g_pHyprOpenGL->shouldUseNewBlurOptimizations(m_data.pLS, m_data.pWindow);
|
const bool NEWOPTIM = g_pHyprOpenGL->shouldUseNewBlurOptimizations(m_data.pLS, m_data.pWindow);
|
||||||
|
|
||||||
return BLUR && NEWOPTIM;
|
return BLUR && NEWOPTIM;
|
||||||
|
Reference in New Issue
Block a user