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.
This commit is contained in:
Andreas Kling 2021-11-14 11:53:58 +01:00
commit 6f80d91850
Notes: sideshowbarker 2024-07-18 01:10:14 +09:00

View file

@ -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();
}