mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibGUI: Only dispatch Leave if the now-hovered widget isn't a child
Without this change, when the mouse starts hovering over a child widget, the parent would receive a Leave event despite the parent widget not losing mouse hover.
This commit is contained in:
parent
444ed56521
commit
cfc9ee6f16
Notes:
sideshowbarker
2024-07-18 08:18:22 +09:00
Author: https://github.com/sin-ack
Commit: cfc9ee6f16
Pull-request: https://github.com/SerenityOS/serenity/pull/9014
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 19 additions and 1 deletions
|
@ -280,6 +280,8 @@ public:
|
|||
|
||||
bool has_pending_drop() const;
|
||||
|
||||
bool is_parent_of(Widget const*) const;
|
||||
|
||||
protected:
|
||||
Widget();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue