mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-15 14:35:58 +00:00
workspace: update hasFullscreenWindow in updateWindows
This commit is contained in:
@@ -648,6 +648,8 @@ void CWorkspace::rename(const std::string& name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CWorkspace::updateWindows() {
|
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) {
|
for (auto const& w : g_pCompositor->m_vWindows) {
|
||||||
if (!w->m_bIsMapped || w->m_pWorkspace != m_pSelf)
|
if (!w->m_bIsMapped || w->m_pWorkspace != m_pSelf)
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user