From 6f80d91850042c626ca3237c3292b1145620c0d5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 14 Nov 2021 11:53:58 +0100 Subject: [PATCH] WindowServer: Reset the window switcher's hovered item between uses Before this, the last hovered item would still appear hovered when bringing up the window switcher after having dismissed it. --- Userland/Services/WindowServer/WindowSwitcher.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/WindowServer/WindowSwitcher.cpp b/Userland/Services/WindowServer/WindowSwitcher.cpp index d1704365c9..4e738f7a53 100644 --- a/Userland/Services/WindowServer/WindowSwitcher.cpp +++ b/Userland/Services/WindowServer/WindowSwitcher.cpp @@ -42,6 +42,7 @@ void WindowSwitcher::set_visible(bool visible) m_switcher_window->set_visible(visible); if (!m_visible) return; + m_hovered_index = -1; refresh(); }