mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +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
9 changed files with 44 additions and 13 deletions
|
@ -189,7 +189,11 @@ private:
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
void reposition_slider_window() { m_slider_window->set_rect(window()->rect_in_menubar().x() - 20, 19, 50, 100); }
|
||||
void reposition_slider_window()
|
||||
{
|
||||
auto applet_rect = window()->applet_rect_on_screen();
|
||||
m_slider_window->set_rect(applet_rect.x() - 20, applet_rect.y() - 106, 50, 100);
|
||||
}
|
||||
|
||||
struct VolumeBitmapPair {
|
||||
int volume_threshold { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue