diff options
author | angel <angel@ttm.sh> | 2020-04-21 15:46:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 15:46:27 +0200 |
commit | ae20775fb75ebb74f07b66bbac343a07524a84c0 (patch) | |
tree | 1ca179089d07f2ced21a7b5b690f22c864eae3cb /Servers/WindowServer | |
parent | 1fa0c7304d1695b34642b53030f961dd64f624e0 (diff) | |
download | serenity-ae20775fb75ebb74f07b66bbac343a07524a84c0.zip |
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.
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r-- | Servers/WindowServer/WindowManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Servers/WindowServer/WindowManager.cpp b/Servers/WindowServer/WindowManager.cpp index 477c58a03a..8113550550 100644 --- a/Servers/WindowServer/WindowManager.cpp +++ b/Servers/WindowServer/WindowManager.cpp @@ -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); } |