mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 16:25:58 +01:00
parent
e5fa017172
commit
940f7aa990
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,6 @@ static void renderSurface(SP<CWLSurfaceResource> surface, int x, int y, void* da
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto RDATA = (SRenderData*)data;
|
const auto RDATA = (SRenderData*)data;
|
||||||
const bool BLUR = RDATA->blur && !TEXTURE->m_bOpaque;
|
|
||||||
const auto INTERACTIVERESIZEINPROGRESS = RDATA->pWindow && g_pInputManager->currentlyDraggedWindow && g_pInputManager->dragMode == MBIND_RESIZE;
|
const auto INTERACTIVERESIZEINPROGRESS = RDATA->pWindow && g_pInputManager->currentlyDraggedWindow && g_pInputManager->dragMode == MBIND_RESIZE;
|
||||||
TRACY_GPU_ZONE("RenderSurface");
|
TRACY_GPU_ZONE("RenderSurface");
|
||||||
|
|
||||||
|
@ -183,6 +182,7 @@ static void renderSurface(SP<CWLSurfaceResource> surface, int x, int y, void* da
|
||||||
auto PSURFACE = CWLSurface::fromResource(surface);
|
auto PSURFACE = CWLSurface::fromResource(surface);
|
||||||
|
|
||||||
const float ALPHA = RDATA->alpha * RDATA->fadeAlpha * (PSURFACE ? PSURFACE->m_pAlphaModifier : 1.F);
|
const float ALPHA = RDATA->alpha * RDATA->fadeAlpha * (PSURFACE ? PSURFACE->m_pAlphaModifier : 1.F);
|
||||||
|
const bool BLUR = RDATA->blur && (!TEXTURE->m_bOpaque || ALPHA < 1.F);
|
||||||
|
|
||||||
CBox windowBox;
|
CBox windowBox;
|
||||||
if (RDATA->surface && surface == RDATA->surface) {
|
if (RDATA->surface && surface == RDATA->surface) {
|
||||||
|
|
Loading…
Reference in a new issue