1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

WindowServer: Don't keep menu items in hovered state after the cursor leaves.

This commit is contained in:
Andreas Kling 2019-02-11 11:06:41 +01:00
parent 6dd1a1f26d
commit e6de6c4f45
3 changed files with 16 additions and 2 deletions

View file

@ -57,6 +57,9 @@ public:
WSMenuItem* item_at(const Point&);
void redraw();
const WSMenuItem* hovered_item() const { return m_hovered_item; }
void clear_hovered_item();
Function<void(WSMenuItem&)> on_item_activation;
private: