mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
parent
aa46aaed04
commit
c6804ccaab
@ -1207,13 +1207,6 @@ CFramebuffer* CHyprOpenGLImpl::blurMainFramebufferWithDamage(float a, CRegion* o
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CHyprOpenGLImpl::markBlurDirtyForMonitor(CMonitor* pMonitor) {
|
void CHyprOpenGLImpl::markBlurDirtyForMonitor(CMonitor* pMonitor) {
|
||||||
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pMonitor->activeWorkspace);
|
|
||||||
const auto PFULLWINDOW = g_pCompositor->getFullscreenWindowOnWorkspace(pMonitor->activeWorkspace);
|
|
||||||
|
|
||||||
if (PWORKSPACE->m_bHasFullscreenWindow && PWORKSPACE->m_efFullscreenMode == FULLSCREEN_FULL && PFULLWINDOW && !PFULLWINDOW->m_vRealSize.isBeingAnimated() &&
|
|
||||||
PFULLWINDOW->opaque())
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_mMonitorRenderResources[pMonitor].blurFBDirty = true;
|
m_mMonitorRenderResources[pMonitor].blurFBDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1225,6 +1218,10 @@ void CHyprOpenGLImpl::preRender(CMonitor* pMonitor) {
|
|||||||
if (!*PBLURNEWOPTIMIZE || !m_mMonitorRenderResources[pMonitor].blurFBDirty || !*PBLUR)
|
if (!*PBLURNEWOPTIMIZE || !m_mMonitorRenderResources[pMonitor].blurFBDirty || !*PBLUR)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// ignore if solitary present, nothing to blur
|
||||||
|
if (pMonitor->solitaryClient)
|
||||||
|
return;
|
||||||
|
|
||||||
// check if we need to update the blur fb
|
// check if we need to update the blur fb
|
||||||
// if there are no windows that would benefit from it,
|
// if there are no windows that would benefit from it,
|
||||||
// we will ignore that the blur FB is dirty.
|
// we will ignore that the blur FB is dirty.
|
||||||
|
Loading…
Reference in New Issue
Block a user