summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-09-07 08:14:14 -0400
committerLinus Groh <mail@linusgroh.de>2022-09-08 23:21:54 +0100
commit72ae082ca8447d5fddb1048175e8c96ad85ee95d (patch)
tree9a7de62ac79a1594d10bace3182352cafcaf60f1 /Userland/Services
parent51006930da16118da814ca650084157fceb36417 (diff)
downloadserenity-72ae082ca8447d5fddb1048175e8c96ad85ee95d.zip
WindowServer: Let Windows handle InputLeft events when blocked
Fixes windows not updating on active input changes after being blocked
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WindowServer/Window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp
index a24de871f5..d786a1ddb7 100644
--- a/Userland/Services/WindowServer/Window.cpp
+++ b/Userland/Services/WindowServer/Window.cpp
@@ -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;
}