From 18b483b8e12eadc2e91ee5e3d7eb824b94704386 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 19 Sep 2022 10:40:42 +0100 Subject: [PATCH] fix ws switching with LS opacity --- src/helpers/Workspace.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/helpers/Workspace.cpp b/src/helpers/Workspace.cpp index 0b964fdf..ff990a57 100644 --- a/src/helpers/Workspace.cpp +++ b/src/helpers/Workspace.cpp @@ -91,6 +91,14 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) { m_vRenderOffset.warp(); m_fAlpha.warp(); } + + // check LS-es + 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; + } + } } void CWorkspace::setActive(bool on) {