desktop/ls: only update the ls in question for commit to change layer

This commit is contained in:
Vaxry 2025-12-21 23:50:42 +01:00
parent 712bcfbce5
commit 60efbf3f63
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -332,9 +332,10 @@ void CLayerSurface::onCommit() {
}
m_layer = m_layerSurface->m_current.layer;
m_aboveFullscreen = true;
m_aboveFullscreen = m_layerSurface->m_current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY;
g_pDesktopAnimationManager->setFullscreenFadeAnimation(PMONITOR->m_activeWorkspace, CDesktopAnimationManager::ANIMATION_TYPE_IN);
// if in fullscreen, only overlay can be above.
*m_alpha = PMONITOR->inFullscreenMode() ? (m_layer >= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY ? 1.F : 0.F) : 1.F;
if (m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM)
g_pHyprOpenGL->markBlurDirtyForMonitor(PMONITOR); // so that blur is recalc'd