mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
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:
parent
4387a4864c
commit
7345b502ab
Notes:
sideshowbarker
2024-07-18 19:00:44 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/7345b502abd Pull-request: https://github.com/SerenityOS/serenity/pull/6702 Issue: https://github.com/SerenityOS/serenity/issues/6690
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue