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:
Andreas Kling 2021-03-30 23:30:50 +02:00
commit 0cd60a28ba
Notes: sideshowbarker 2024-07-18 20:56:44 +09:00
9 changed files with 44 additions and 13 deletions

View file

@ -599,7 +599,7 @@ Gfx::IntRect Widget::window_relative_rect() const
Gfx::IntRect Widget::screen_relative_rect() const
{
auto window_position = window()->window_type() == WindowType::MenuApplet
? window()->rect_in_menubar().location()
? window()->applet_rect_on_screen().location()
: window()->rect().location();
return window_relative_rect().translated(window_position);
}