mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:45:59 +01:00
parent
f389f77015
commit
ca59bd5739
1 changed files with 11 additions and 0 deletions
|
@ -152,6 +152,17 @@ bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) {
|
|||
return true;
|
||||
}
|
||||
|
||||
// these two block optimization
|
||||
for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND]) {
|
||||
if (ls->forceBlur)
|
||||
return true;
|
||||
}
|
||||
|
||||
for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM]) {
|
||||
if (ls->forceBlur)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (*PBLURSPECIAL) {
|
||||
for (auto& ws : g_pCompositor->m_vWorkspaces) {
|
||||
if (!ws->m_bIsSpecialWorkspace || ws->m_iMonitorID != pMonitor->ID)
|
||||
|
|
Loading…
Reference in a new issue