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:
parent
6dd1a1f26d
commit
e6de6c4f45
3 changed files with 16 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue