Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22ac12b2 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by Gerrit Code Review
Browse files

Merge "Only prune non-pointer events" into main

parents e88ab061 b32ea72c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1058,8 +1058,11 @@ void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) {
                dropReason = DropReason::STALE;
            }
            if (dropReason == DropReason::NOT_DROPPED && mNextUnblockedEvent) {
                if (!isFromSource(motionEntry->source, AINPUT_SOURCE_CLASS_POINTER)) {
                    // Only drop events that are focus-dispatched.
                    dropReason = DropReason::BLOCKED;
                }
            }
            done = dispatchMotionLocked(currentTime, motionEntry, &dropReason, nextWakeupTime);
            break;
        }