1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

WindowServer: Restore modal chains from the Taskbar and Switcher

And only show modeless windows in WindowSwitcher.
This commit is contained in:
thankyouverycool 2022-08-22 18:18:56 -04:00 committed by Andreas Kling
parent 5a0472d8d2
commit 6f316d59f4
4 changed files with 14 additions and 5 deletions

View file

@ -2124,6 +2124,16 @@ void WindowManager::did_popup_a_menu(Badge<Menu>)
set_automatic_cursor_tracking_window(nullptr);
}
void WindowManager::restore_modal_chain(Window& window)
{
for_each_window_in_modal_chain(window, [&](auto& w) {
w.set_minimized(false);
w.window_stack().move_to_front(w);
return IterationDecision::Continue;
});
move_to_front_and_make_active(window);
}
void WindowManager::minimize_windows(Window& window, bool minimized)
{
for_each_window_in_modal_chain(window, [&](auto& w) {