mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
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:
parent
aa045a9fdf
commit
7b2becad52
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/thankyouverycool
Commit: 7b2becad52
Pull-request: https://github.com/SerenityOS/serenity/pull/15032
Issue: https://github.com/SerenityOS/serenity/issues/15018
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue