1
Fork 0
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:
angel 2020-04-21 15:46:27 +02:00 committed by GitHub
parent 1fa0c7304d
commit ae20775fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}