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
commit ae20775fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 17:35:31 +09:00

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