mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +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
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ void WindowSwitcher::set_visible(bool visible)
|
||||||
m_switcher_window->set_visible(visible);
|
m_switcher_window->set_visible(visible);
|
||||||
if (!m_visible)
|
if (!m_visible)
|
||||||
return;
|
return;
|
||||||
|
m_hovered_index = -1;
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue