mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
WindowServer: Ignore modal blocking if capturing input
This exception is necessary for ComboBoxes used in some blocking Dialogs. CaptureInput is now the only mode which can spawn from a blocking modal and it won't accept any children of its own.
This commit is contained in:
parent
bab8bd143f
commit
18b111b802
3 changed files with 11 additions and 9 deletions
|
@ -442,7 +442,7 @@ void Window::event(Core::Event& event)
|
|||
return;
|
||||
}
|
||||
|
||||
if (blocking_modal_window()) {
|
||||
if (blocking_modal_window() && !is_capturing_input()) {
|
||||
// We still want to handle the WindowDeactivated event below when a new modal is
|
||||
// created to notify its parent window, despite it being "blocked by modal window".
|
||||
if (event.type() != Event::WindowDeactivated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue