diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Window.cpp b/Userland/Libraries/LibGUI/Window.cpp index 781dcd8636..910e04fc0a 100644 --- a/Userland/Libraries/LibGUI/Window.cpp +++ b/Userland/Libraries/LibGUI/Window.cpp @@ -802,7 +802,7 @@ void Window::set_hovered_widget(Widget* widget) if (widget == m_hovered_widget) return; - if (m_hovered_widget) + if (m_hovered_widget && !m_hovered_widget->is_parent_of(widget)) Core::EventLoop::current().post_event(*m_hovered_widget, make<Event>(Event::Leave)); m_hovered_widget = widget; |