WindowServer: Don't restore active window if it is minimized

When closing a menu, don't restore the active input to a window that
is now minimized or invisible.

Fixes #6690
This commit is contained in:
Tom 2021-04-27 21:21:36 -06:00 committed by Linus Groh
parent 4387a4864c
commit 7345b502ab
Notes: sideshowbarker 2024-07-18 19:00:44 +09:00

View file

@ -1322,7 +1322,10 @@ void WindowManager::restore_active_input_window(Window* window)
if (!window && pick_new_active_window(nullptr))
return;
if (window && !window->is_minimized() && window->is_visible())
set_active_input_window(window);
else
set_active_input_window(nullptr);
}
Window* WindowManager::set_active_input_window(Window* window)