File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments