monitor: update pinned window states properly on changeWorkspace (#13441)

ref https://github.com/hyprwm/Hyprland/discussions/13440
This commit is contained in:
Vaxry 2026-02-28 22:42:06 +00:00 committed by GitHub
parent 85c2764f5e
commit 0b55c55f4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 1 deletions

View file

@ -1343,7 +1343,7 @@ void CMonitor::changeWorkspace(const PHLWORKSPACE& pWorkspace, bool internal, bo
// move pinned windows
for (auto const& w : g_pCompositor->m_windows) {
if (w->m_workspace == POLDWORKSPACE && w->m_pinned)
w->moveToWorkspace(pWorkspace);
w->layoutTarget()->assignToSpace(pWorkspace->m_space);
}
if (!noFocus && !Desktop::focusState()->monitor()->m_activeSpecialWorkspace &&