fix LS fading out on ws change

This commit is contained in:
Vaxry 2022-09-20 09:46:46 +01:00
parent a8943246a7
commit 4dca2b945b

View file

@ -96,6 +96,7 @@ 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]) {
if (!ls->fadingOut)
ls->alpha = m_bHasFullscreenWindow && m_efFullscreenMode == FULLSCREEN_FULL ? 0.f : 255.f;
}
}