mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-16 17:00:35 +03:00
WindowServer: Let Windows handle InputLeft events when blocked
Fixes windows not updating on active input changes after being blocked
This commit is contained in:
parent
51006930da
commit
72ae082ca8
Notes:
sideshowbarker
2024-07-17 07:20:12 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/72ae082ca8 Pull-request: https://github.com/SerenityOS/serenity/pull/15157
@ -443,9 +443,8 @@ void Window::event(Core::Event& event)
|
||||
}
|
||||
|
||||
if (blocking_modal_window()) {
|
||||
// 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)
|
||||
// Allow windows to process their inactivity after being blocked
|
||||
if (event.type() != Event::WindowDeactivated && event.type() != Event::WindowInputLeft)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user