mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
LibGUI: Add on_active_window_change function object to the Window class
This commit is contained in:
committed by
Andreas Kling
parent
a037e0ffec
commit
ac21c6625d
@@ -491,6 +491,8 @@ void Window::handle_became_active_or_inactive_event(Core::Event& event)
|
||||
Application::the()->window_did_become_active({}, *this);
|
||||
else
|
||||
Application::the()->window_did_become_inactive({}, *this);
|
||||
if (on_active_window_change)
|
||||
on_active_window_change(event.type() == Event::WindowBecameActive);
|
||||
if (m_main_widget)
|
||||
m_main_widget->dispatch_event(event, this);
|
||||
if (m_focused_widget)
|
||||
|
||||
Reference in New Issue
Block a user