mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 17:55:08 +00:00
WindowServer: Unset active input window on active window change (#1901)
This was not done previously and resulted in modal windows not being able to accept input unless they were clicked one time if their parent windows were the active input window.
This commit is contained in:
parent
1fa0c7304d
commit
ae20775fb7
1 changed files with 1 additions and 0 deletions
|
@ -1086,6 +1086,7 @@ void WindowManager::set_active_window(Window* window)
|
|||
Core::EventLoop::current().post_event(*previously_active_window, make<Event>(Event::WindowDeactivated));
|
||||
invalidate(*previously_active_window);
|
||||
m_active_window = nullptr;
|
||||
m_active_input_window = nullptr;
|
||||
tell_wm_listeners_window_state_changed(*previously_active_window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue