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
parent 9f7f7e69bb
commit 6f80d91850

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