summaryrefslogtreecommitdiff
path: root/src/desktop/view/LayerSurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-12-21 23:50:42 +0100
committerVaxry <vaxry@vaxry.net>2025-12-21 23:50:53 +0100
commit60efbf3f63bec3100477ea9ba6cd634e35d5aeaa (patch)
tree05a871af8324bb59f4057ee0980e86db9821f0b1 /src/desktop/view/LayerSurface.cpp
parent712bcfbce58a6d352833325bb901fbcf7b58c136 (diff)
desktop/ls: only update the ls in question for commit to change layer
Diffstat (limited to 'src/desktop/view/LayerSurface.cpp')
-rw-r--r--src/desktop/view/LayerSurface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/desktop/view/LayerSurface.cpp b/src/desktop/view/LayerSurface.cpp
index 7c65c972..f61d9554 100644
--- a/src/desktop/view/LayerSurface.cpp
+++ b/src/desktop/view/LayerSurface.cpp
@@ -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