aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-11 16:02:54 +0000
committerVaxry <[email protected]>2024-12-11 16:03:04 +0000
commite89231095383404853cef93d4aa7230a71a59560 (patch)
treeea0c761ab9fa3326664b616d7ae8679c968792a7 /src
parent4d05677e8d398b6fa144eae7a98ad4f2a54acb92 (diff)
downloadHyprland-e89231095383404853cef93d4aa7230a71a59560.tar.gz
Hyprland-e89231095383404853cef93d4aa7230a71a59560.zip
workspace: update hasFullscreenWindow in updateWindows
Diffstat (limited to 'src')
-rw-r--r--src/desktop/Workspace.cpp2
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;