aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-22 16:04:10 +0000
committerVaxry <[email protected]>2024-12-22 16:04:10 +0000
commit1cc1a46c2e154a27750b81307040d3bf7ff0f64f (patch)
tree9639acd85448bfcbd797a0c5a34241ad650ac36b /src/render/Renderer.cpp
parent31422ae25dee33dd000798b64a80bd7fd08d2ece (diff)
downloadHyprland-1cc1a46c2e154a27750b81307040d3bf7ff0f64f.tar.gz
Hyprland-1cc1a46c2e154a27750b81307040d3bf7ff0f64f.zip
core: fade in windows when they are brought from invisible workspaces
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 4edd5a0c..c873842b 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -597,7 +597,7 @@ void CHyprRenderer::renderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor, timespe
renderdata.surface = pWindow->m_pWLSurface->resource();
renderdata.dontRound = pWindow->isEffectiveInternalFSMode(FSMODE_FULLSCREEN) || pWindow->m_sWindowData.noRounding.valueOrDefault();
renderdata.fadeAlpha = pWindow->m_fAlpha.value() * (pWindow->m_bPinned || USE_WORKSPACE_FADE_ALPHA ? 1.f : PWORKSPACE->m_fAlpha.value()) *
- (USE_WORKSPACE_FADE_ALPHA ? pWindow->m_fMovingToWorkspaceAlpha.value() : 1.F);
+ (USE_WORKSPACE_FADE_ALPHA ? pWindow->m_fMovingToWorkspaceAlpha.value() : 1.F) * pWindow->m_fMovingFromWorkspaceAlpha.value();
renderdata.alpha = pWindow->m_fActiveInactiveAlpha.value();
renderdata.decorate = decorate && !pWindow->m_bX11DoesntWantBorders && !pWindow->isEffectiveInternalFSMode(FSMODE_FULLSCREEN);
renderdata.rounding = ignoreAllGeometry || renderdata.dontRound ? 0 : pWindow->rounding() * pMonitor->scale;