diff options
| author | SoSeDiK <mrsosedik@gmail.com> | 2024-04-08 01:19:02 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-07 23:19:02 +0100 |
| commit | 43b96f03b5af60586a864ea64e8c71b11ea6eb85 (patch) | |
| tree | bc9744cfabddf1b14d356da4033ad780c9b62e8d /src/Compositor.cpp | |
| parent | df1a3a978d61b976542beaadc7c0ab8468ddb5d0 (diff) | |
props: Allow setting per-window fullscreen opacity (#5470)
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 746011ef..5c42b8ff 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1922,7 +1922,10 @@ void CCompositor::updateWindowAnimatedDecorationValues(CWindow* pWindow) { // opacity const auto PWORKSPACE = pWindow->m_pWorkspace; if (pWindow->m_bIsFullscreen && PWORKSPACE->m_efFullscreenMode == FULLSCREEN_FULL) { - pWindow->m_fActiveInactiveAlpha = *PFULLSCREENALPHA; + pWindow->m_fActiveInactiveAlpha = pWindow->m_sSpecialRenderData.alphaFullscreen.toUnderlying() != -1 ? + (pWindow->m_sSpecialRenderData.alphaFullscreenOverride.toUnderlying() ? pWindow->m_sSpecialRenderData.alphaFullscreen.toUnderlying() : + pWindow->m_sSpecialRenderData.alphaFullscreen.toUnderlying() * *PFULLSCREENALPHA) : + *PFULLSCREENALPHA; } else { if (pWindow == m_pLastWindow) pWindow->m_fActiveInactiveAlpha = pWindow->m_sSpecialRenderData.alphaOverride.toUnderlying() ? pWindow->m_sSpecialRenderData.alpha.toUnderlying() : |
