diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2021-07-25 21:09:54 +0000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-26 21:14:39 +0430 |
commit | cfc9ee6f16b9c4d2b246bb2832dd436637cbeaad (patch) | |
tree | 01fdd797e75aff6933cc7e496cb84f6bf8d5c802 /Userland/Libraries/LibGUI/Widget.h | |
parent | 444ed565215f5b164978cab7a7cb1ee86959cc34 (diff) | |
download | serenity-cfc9ee6f16b9c4d2b246bb2832dd436637cbeaad.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/Widget.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Widget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Widget.h b/Userland/Libraries/LibGUI/Widget.h index a46a735e89..4a5f4ef8f4 100644 --- a/Userland/Libraries/LibGUI/Widget.h +++ b/Userland/Libraries/LibGUI/Widget.h @@ -280,6 +280,8 @@ public: bool has_pending_drop() const; + bool is_parent_of(Widget const*) const; + protected: Widget(); |