mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-09 22:09:48 +01:00
workspace: update hasFullscreenWindow in updateWindows
This commit is contained in:
parent
4d05677e8d
commit
e892310953
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue