diff options
author | Vaxry <[email protected]> | 2024-12-11 16:02:54 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-11 16:03:04 +0000 |
commit | e89231095383404853cef93d4aa7230a71a59560 (patch) | |
tree | ea0c761ab9fa3326664b616d7ae8679c968792a7 | |
parent | 4d05677e8d398b6fa144eae7a98ad4f2a54acb92 (diff) | |
download | Hyprland-e89231095383404853cef93d4aa7230a71a59560.tar.gz Hyprland-e89231095383404853cef93d4aa7230a71a59560.zip |
workspace: update hasFullscreenWindow in updateWindows
-rw-r--r-- | src/desktop/Workspace.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |