aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-10-02 16:22:39 +0100
committervaxerski <[email protected]>2023-10-02 16:22:39 +0100
commit50fecf084d06f8b982194fdc9cf53a40741d8453 (patch)
treed094b648551d3c578badb5a09024ce2824d618b8
parent5ffb1032e171b88dc45e0169159e449989a0fc58 (diff)
downloadHyprland-50fecf084d06f8b982194fdc9cf53a40741d8453.tar.gz
Hyprland-50fecf084d06f8b982194fdc9cf53a40741d8453.zip
events: set new window alpha to 0 if it's tiled behind fullscreen
fixes #3474
-rw-r--r--src/events/Windows.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 88ccab22..2ea4e46c 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -633,6 +633,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
// recalc the values for this window
g_pCompositor->updateWindowAnimatedDecorationValues(PWINDOW);
+ // avoid this window being visible
+ if (PWORKSPACE->m_bHasFullscreenWindow && !PWINDOW->m_bIsFullscreen && !PWINDOW->m_bIsFloating)
+ PWINDOW->m_fAlpha.setValueAndWarp(0.f);
g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(PWINDOW->m_pWLSurface.wlr(), PMONITOR->scale);
}