From 72ae082ca8447d5fddb1048175e8c96ad85ee95d Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Wed, 7 Sep 2022 08:14:14 -0400 Subject: [PATCH] WindowServer: Let Windows handle InputLeft events when blocked Fixes windows not updating on active input changes after being blocked --- Userland/Services/WindowServer/Window.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index a24de871f50..d786a1ddb75 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; }