mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
Revert "LibGUI: Ignore the Enter event by default"
This reverts commit a5a32fbcce.
This change was wrong: it's fine for a child widget to receive an enter
event despite its parent never getting one. Only the widget directly
under the mouse cursor is considered hovered for enter/leave purposes.
This commit is contained in:
@@ -528,9 +528,8 @@ void Widget::focusout_event(FocusEvent&)
|
||||
{
|
||||
}
|
||||
|
||||
void Widget::enter_event(Core::Event& event)
|
||||
void Widget::enter_event(Core::Event&)
|
||||
{
|
||||
event.ignore();
|
||||
}
|
||||
|
||||
void Widget::leave_event(Core::Event&)
|
||||
|
||||
Reference in New Issue
Block a user