diff options
author | vaxerski <[email protected]> | 2022-09-19 11:44:11 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-09-19 11:44:11 +0100 |
commit | abb6db9c379737bf36009f0de35cfd8f1198852f (patch) | |
tree | b7d7424e5ce6711ae5a2a4ff39c4b6f4cc068d27 | |
parent | 18b483b8e12eadc2e91ee5e3d7eb824b94704386 (diff) | |
download | Hyprland-abb6db9c379737bf36009f0de35cfd8f1198852f.tar.gz Hyprland-abb6db9c379737bf36009f0de35cfd8f1198852f.zip |
don't apply alpha to fadingOut on setWindowFullscreen
-rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 0d84bcdb..4a04c8ad 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1621,7 +1621,8 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode const auto PMONITOR = getMonitorFromID(pWindow->m_iMonitorID); for (auto& ls : PMONITOR->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) { - ls->alpha = pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL ? 0.f : 255.f; + if (!ls->fadingOut) + ls->alpha = pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL ? 0.f : 255.f; } g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv(), true); |