diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-12-16 15:58:19 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-12-16 15:58:19 +0000 |
| commit | a5234f26e4b7146ae7c2df25950f0177534cd643 (patch) | |
| tree | be319115cca2eb369791fad1822bdda0e0f358e9 /src/Compositor.cpp | |
| parent | de3ad245dcbcd42c88e9afc48264bdb8f2356c15 (diff) | |
core: drop using deques in favor of vectors
No point in most of these.
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 3047f2ea..4276a74e 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1349,13 +1349,13 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) { else { // move X11 window stack - std::deque<PHLWINDOW> toMove; + std::vector<PHLWINDOW> toMove; - auto x11Stack = [&](PHLWINDOW pw, bool top, auto&& x11Stack) -> void { + auto x11Stack = [&](PHLWINDOW pw, bool top, auto&& x11Stack) -> void { if (top) toMove.emplace_back(pw); else - toMove.emplace_front(pw); + toMove.insert(toMove.begin(), pw); for (auto const& w : m_vWindows) { if (w->m_bIsMapped && !w->isHidden() && w->m_bIsX11 && w->x11TransientFor() == pw && w != pw && std::find(toMove.begin(), toMove.end(), w) == toMove.end()) { |
