mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +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
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))
|
if (!window && pick_new_active_window(nullptr))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
set_active_input_window(window);
|
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)
|
Window* WindowManager::set_active_input_window(Window* window)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue