diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-09-19 17:26:11 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-09-19 17:26:11 +0100 |
| commit | 85c7aaf15529dbff5af3460c099bcba2742b7652 (patch) | |
| tree | 110ba240286ca7d96ddc0fea8e72026ecf67d16f /src/Compositor.cpp | |
| parent | 696253b3489fb57904b500b8265dfaf19ada56d6 (diff) | |
fade control for fullscreen action on windows
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
