From 7b2becad528799276abbf4610106cdd83ee7f075 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:10:50 -0400 Subject: [PATCH] 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. --- .../Services/FileSystemAccessServer/ConnectionFromClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/FileSystemAccessServer/ConnectionFromClient.cpp b/Userland/Services/FileSystemAccessServer/ConnectionFromClient.cpp index aca1aca821..d701ec242b 100644 --- a/Userland/Services/FileSystemAccessServer/ConnectionFromClient.cpp +++ b/Userland/Services/FileSystemAccessServer/ConnectionFromClient.cpp @@ -37,6 +37,7 @@ RefPtr 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();