File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Userland/Libraries/LibGUI Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,8 @@ void Window::handle_became_active_or_inactive_event(Core::Event& event)
491
491
Application::the ()->window_did_become_active ({}, *this );
492
492
else
493
493
Application::the ()->window_did_become_inactive ({}, *this );
494
+ if (on_active_window_change)
495
+ on_active_window_change (event.type () == Event::WindowBecameActive);
494
496
if (m_main_widget)
495
497
m_main_widget->dispatch_event (event, this );
496
498
if (m_focused_widget)
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ class Window : public Core::Object {
83
83
Function<void ()> on_close;
84
84
Function<CloseRequestDecision()> on_close_request;
85
85
Function<void (bool is_active_input)> on_active_input_change;
86
+ Function<void (bool is_active_window)> on_active_window_change;
86
87
87
88
int x () const { return rect ().x (); }
88
89
int y () const { return rect ().y (); }
You can’t perform that action at this time.
0 commit comments