diff options
| author | Naufal Hisyam Muzakki <155966008+NaufalH27@users.noreply.github.com> | 2026-01-21 22:55:12 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 15:55:12 +0000 |
| commit | e7985ca4c4fa6ca0d96a2f303c3f0395d2d27b31 (patch) | |
| tree | 9c1c5733e28980567a3280a09dbfd9212bfa0e12 /src/managers/animation/DesktopAnimationManager.cpp | |
| parent | 6c3ebed76e7def7b853e21fbf93f6eeb176696f9 (diff) | |
desktop: restore invisible floating window alpha/opacity when focused over fullscreen (#12994)
Diffstat (limited to 'src/managers/animation/DesktopAnimationManager.cpp')
| -rw-r--r-- | src/managers/animation/DesktopAnimationManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/managers/animation/DesktopAnimationManager.cpp b/src/managers/animation/DesktopAnimationManager.cpp index 9470ec27..9a1fc081 100644 --- a/src/managers/animation/DesktopAnimationManager.cpp +++ b/src/managers/animation/DesktopAnimationManager.cpp @@ -8,6 +8,7 @@ #include "../../config/ConfigManager.hpp" #include "../../Compositor.hpp" +#include "desktop/DesktopTypes.hpp" #include "wlr-layer-shell-unstable-v1.hpp" void CDesktopAnimationManager::startAnimation(PHLWINDOW pWindow, eAnimationType type, bool force) { @@ -484,6 +485,13 @@ void CDesktopAnimationManager::setFullscreenFadeAnimation(PHLWORKSPACE ws, eAnim } } +void CDesktopAnimationManager::setFullscreenFloatingFade(PHLWINDOW pWindow, float fade) { + if (pWindow->m_fadingOut || !pWindow->m_isFloating) + return; + + *pWindow->m_alpha = fade; +} + void CDesktopAnimationManager::overrideFullscreenFadeAmount(PHLWORKSPACE ws, float fade, PHLWINDOW exclude) { for (auto const& w : g_pCompositor->m_windows) { if (w == exclude) |
