diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index 274009fc50784..10a639e7aaad9 100644 --- a/services/input/InputDispatcher.cpp +++ b/services/input/InputDispatcher.cpp @@ -1699,7 +1699,7 @@ bool InputDispatcher::isWindowReadyForMoreInputLocked(nsecs_t currentTime, // up with lots of events because the application is not responding. // This condition ensures that ANRs are detected reliably. if (!connection->waitQueue.isEmpty() - && currentTime >= connection->waitQueue.head->eventEntry->eventTime + && currentTime >= connection->waitQueue.head->deliveryTime + STREAM_AHEAD_EVENT_TIMEOUT) { return false; }