1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

WindowServer: Clear window switcher's hovered item when cursor leaves

When the mouse cursor leaves the switcher window, we'll want to clear
the hovered item index so it stops showing as hovered. :^)
This commit is contained in:
Andreas Kling 2021-11-14 12:00:55 +01:00
parent 6f80d91850
commit 7fb2540ffe
2 changed files with 15 additions and 1 deletions

View file

@ -61,6 +61,7 @@ private:
void select_window_at_index(int index);
Gfx::IntRect item_rect(int index) const;
Window* selected_window();
void clear_hovered_index();
virtual void event(Core::Event&) override;