Skip to content

Commit 60efbf3

Browse files
committed
desktop/ls: only update the ls in question for commit to change layer
1 parent 712bcfb commit 60efbf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/desktop/view/LayerSurface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,10 @@ void CLayerSurface::onCommit() {
332332
}
333333

334334
m_layer = m_layerSurface->m_current.layer;
335-
m_aboveFullscreen = true;
335+
m_aboveFullscreen = m_layerSurface->m_current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY;
336336

337-
g_pDesktopAnimationManager->setFullscreenFadeAnimation(PMONITOR->m_activeWorkspace, CDesktopAnimationManager::ANIMATION_TYPE_IN);
337+
// if in fullscreen, only overlay can be above.
338+
*m_alpha = PMONITOR->inFullscreenMode() ? (m_layer >= ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY ? 1.F : 0.F) : 1.F;
338339

339340
if (m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM)
340341
g_pHyprOpenGL->markBlurDirtyForMonitor(PMONITOR); // so that blur is recalc'd

0 commit comments

Comments
 (0)