workspace: update hasFullscreenWindow in updateWindows

This commit is contained in:
Vaxry 2024-12-11 16:02:54 +00:00
parent 4d05677e8d
commit e892310953

View file

@ -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;