FileSystemAccessServer: Set dummy child to WindowMode::Passive

so Dialogs can join the modal chain of the window parenting them.
Fixes apps that use FileSystemAccess to sandbox FilePicker not
respecting its blocking effect.
This commit is contained in:
thankyouverycool 2022-08-25 20:10:50 -04:00 committed by Andreas Kling
commit 7b2becad52
Notes: sideshowbarker 2024-07-17 07:43:44 +09:00

View file

@ -37,6 +37,7 @@ RefPtr<GUI::Window> ConnectionFromClient::create_dummy_child_window(i32 window_s
auto window = GUI::Window::construct();
window->set_opacity(0);
window->set_frameless(true);
window->set_window_mode(GUI::WindowMode::Passive);
auto rect = GUI::ConnectionToWindowServer::the().get_window_rect_from_client(window_server_client_id, parent_window_id);
window->set_rect(rect);
window->show();