mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +00:00
WindowServer+LibGUI: Plumb mouse/enter/leave events to applet windows
Since applet windows live in the applet area window, the AppletManager has to keep track of which applet is hovered and send the appropriate enter/leave events to the applet windows. This makes applet tooltips work again. :^)
This commit is contained in:
parent
9bbc1c9c93
commit
0cd60a28ba
Notes:
sideshowbarker
2024-07-18 20:56:44 +09:00
Author: https://github.com/awesomekling
Commit: 0cd60a28ba
9 changed files with 44 additions and 13 deletions
|
@ -54,9 +54,11 @@ public:
|
|||
|
||||
private:
|
||||
void draw_applet(const Window& applet);
|
||||
void set_hovered_applet(Window*);
|
||||
|
||||
Vector<WeakPtr<Window>> m_applets;
|
||||
RefPtr<Window> m_window;
|
||||
WeakPtr<Window> m_hovered_applet;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue