From 4dca2b945b30a8c0c02afba00f6592401d2935ca Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 20 Sep 2022 09:46:46 +0100 Subject: [PATCH] fix LS fading out on ws change --- src/helpers/Workspace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/Workspace.cpp b/src/helpers/Workspace.cpp index ff990a57..fc9fa770 100644 --- a/src/helpers/Workspace.cpp +++ b/src/helpers/Workspace.cpp @@ -96,7 +96,8 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) { if (in) { const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID); for (auto& ls : PMONITOR->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) { - ls->alpha = m_bHasFullscreenWindow && m_efFullscreenMode == FULLSCREEN_FULL ? 0.f : 255.f; + if (!ls->fadingOut) + ls->alpha = m_bHasFullscreenWindow && m_efFullscreenMode == FULLSCREEN_FULL ? 0.f : 255.f; } } }