1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

WindowServer: Always restore modal chain when clicking a window

Refactors restore helper into move_to_front_and_make_active().
Fixes not bringing all modal children to the front when any modal
child or its modeless parent is clicked.
This commit is contained in:
thankyouverycool 2022-08-25 14:41:33 -04:00 committed by Andreas Kling
parent d815f659cc
commit aa045a9fdf
4 changed files with 8 additions and 13 deletions

View file

@ -63,7 +63,7 @@ void WMConnectionFromClient::set_active_window(i32 client_id, i32 window_id)
return;
}
auto& window = *(*it).value;
WindowManager::the().restore_modal_chain(window);
WindowManager::the().move_to_front_and_make_active(window);
}
void WMConnectionFromClient::popup_window_menu(i32 client_id, i32 window_id, Gfx::IntPoint const& screen_position)