workspace: don't check LS-es in startAnim

This commit is contained in:
vaxerski 2023-04-30 01:13:58 +01:00
parent 3580f845e6
commit 6501bceb42
1 changed files with 0 additions and 9 deletions

View File

@ -98,15 +98,6 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
m_vRenderOffset.warp();
m_fAlpha.warp();
}
// check LS-es
if (in && !m_bIsSpecialWorkspace) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID);
for (auto& ls : PMONITOR->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) {
if (!ls->fadingOut)
ls->alpha = m_bHasFullscreenWindow && m_efFullscreenMode == FULLSCREEN_FULL ? 0.f : 1.f;
}
}
}
void CWorkspace::setActive(bool on) {