From b9bef6955487b75d13cfedd230bdc4adafedd115 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sat, 20 Dec 2025 22:16:13 +0000 Subject: Desktop/history: Move history to desktop (#12676) --- src/desktop/view/Window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/desktop/view/Window.cpp') diff --git a/src/desktop/view/Window.cpp b/src/desktop/view/Window.cpp index bdb9affe..c2246db8 100644 --- a/src/desktop/view/Window.cpp +++ b/src/desktop/view/Window.cpp @@ -15,6 +15,7 @@ #include "Window.hpp" #include "LayerSurface.hpp" #include "../state/FocusState.hpp" +#include "../history/WindowHistoryTracker.hpp" #include "../../Compositor.hpp" #include "../../render/decorations/CHyprDropShadowDecoration.hpp" #include "../../render/decorations/CHyprGroupBarDecoration.hpp" @@ -1553,7 +1554,7 @@ PHLWINDOW CWindow::getSwallower() { return candidates[0]; // walk up the focus history and find the last focused - for (auto const& w : Desktop::focusState()->windowHistory()) { + for (auto const& w : Desktop::History::windowTracker()->fullHistory() | std::views::reverse) { if (!w) continue; -- cgit v1.2.3