diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-02-28 18:53:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-28 18:53:36 +0000 |
| commit | f12904e641ae6dbdce4555c0c583cb7fbe9c5b06 (patch) | |
| tree | 368681fa06130186a2b34ce997128b91e7c6ea3c /src/layout/algorithm/Algorithm.cpp | |
| parent | b90c61c04f02ae5bbf0d1a1a63da18f3cee6919d (diff) | |
layout/algo: fix swar on removing a target (#13427)
ref https://github.com/hyprwm/Hyprland/discussions/13422
Diffstat (limited to 'src/layout/algorithm/Algorithm.cpp')
| -rw-r--r-- | src/layout/algorithm/Algorithm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/algorithm/Algorithm.cpp b/src/layout/algorithm/Algorithm.cpp index cd8cfac4..a5f7ffcc 100644 --- a/src/layout/algorithm/Algorithm.cpp +++ b/src/layout/algorithm/Algorithm.cpp @@ -42,16 +42,16 @@ void CAlgorithm::removeTarget(SP<ITarget> target) { const bool IS_FLOATING = std::ranges::contains(m_floatingTargets, target); if (IS_FLOATING) { - m_floating->removeTarget(target); std::erase(m_floatingTargets, target); + m_floating->removeTarget(target); return; } const bool IS_TILED = std::ranges::contains(m_tiledTargets, target); if (IS_TILED) { - m_tiled->removeTarget(target); std::erase(m_tiledTargets, target); + m_tiled->removeTarget(target); return; } |
