mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 05:58:00 +02:00
Merge 99e55a92ed into eff3bfe261
This commit is contained in:
commit
32a02c884e
1 changed files with 6 additions and 5 deletions
|
|
@ -600,7 +600,8 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T
|
|||
|
||||
Event::bus()->m_events.render.stage.emit(RENDER_PRE_WINDOW);
|
||||
|
||||
const auto fullAlpha = renderdata.alpha * renderdata.fadeAlpha;
|
||||
const auto fullAlpha = renderdata.alpha * renderdata.fadeAlpha;
|
||||
const auto decorationAlpha = 1.f * renderdata.fadeAlpha;
|
||||
|
||||
if (*PDIMAROUND && pWindow->m_ruleApplicator->dimAround().valueOrDefault() && !m_bRenderingSnapshot && mode != RENDER_PASS_POPUP) {
|
||||
CBox monbox = {0, 0, m_renderData.pMonitor->m_transformedSize.x, m_renderData.pMonitor->m_transformedSize.y};
|
||||
|
|
@ -638,14 +639,14 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T
|
|||
if (wd->getDecorationLayer() != DECORATION_LAYER_BOTTOM)
|
||||
continue;
|
||||
|
||||
wd->draw(pMonitor, fullAlpha);
|
||||
wd->draw(pMonitor, decorationAlpha);
|
||||
}
|
||||
|
||||
for (auto const& wd : pWindow->m_windowDecorations) {
|
||||
if (wd->getDecorationLayer() != DECORATION_LAYER_UNDER)
|
||||
continue;
|
||||
|
||||
wd->draw(pMonitor, fullAlpha);
|
||||
wd->draw(pMonitor, decorationAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -692,7 +693,7 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T
|
|||
if (wd->getDecorationLayer() != DECORATION_LAYER_OVER)
|
||||
continue;
|
||||
|
||||
wd->draw(pMonitor, fullAlpha);
|
||||
wd->draw(pMonitor, decorationAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -777,7 +778,7 @@ void IHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, const T
|
|||
if (wd->getDecorationLayer() != DECORATION_LAYER_OVERLAY)
|
||||
continue;
|
||||
|
||||
wd->draw(pMonitor, fullAlpha);
|
||||
wd->draw(pMonitor, decorationAlpha);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue