mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
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:
parent
9f7f7e69bb
commit
6f80d91850
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue