From 85c7aaf15529dbff5af3460c099bcba2742b7652 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 19 Sep 2022 17:26:11 +0100 Subject: fade control for fullscreen action on windows --- src/Compositor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 4a04c8ad..60d3195c 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1614,8 +1614,11 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode // make all windows on the same workspace under the fullscreen window for (auto& w : g_pCompositor->m_vWindows) { - if (w->m_iWorkspaceID == pWindow->m_iWorkspaceID) + if (w->m_iWorkspaceID == pWindow->m_iWorkspaceID) { w->m_bCreatedOverFullscreen = false; + if (w.get() != pWindow && !w->m_bFadingOut) + w->m_fAlpha = pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL ? 0.f : 255.f; + } } const auto PMONITOR = getMonitorFromID(pWindow->m_iMonitorID); -- cgit v1.2.3