From e89231095383404853cef93d4aa7230a71a59560 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 11 Dec 2024 16:02:54 +0000 Subject: [PATCH] workspace: update hasFullscreenWindow in updateWindows --- src/desktop/Workspace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/desktop/Workspace.cpp b/src/desktop/Workspace.cpp index 0230262a..0930ef00 100644 --- a/src/desktop/Workspace.cpp +++ b/src/desktop/Workspace.cpp @@ -648,6 +648,8 @@ void CWorkspace::rename(const std::string& name) { } void CWorkspace::updateWindows() { + m_bHasFullscreenWindow = std::ranges::any_of(g_pCompositor->m_vWindows, [this](const auto& w) { return w->m_bIsMapped && w->m_pWorkspace == m_pSelf && w->isFullscreen(); }); + for (auto const& w : g_pCompositor->m_vWindows) { if (!w->m_bIsMapped || w->m_pWorkspace != m_pSelf) continue;