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

Commit 1fb18917 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Log event information when event is dropped

To help debug cases where the windows and displays are misconfigured,
let's check where the touch is trying to go when the events are dropped.

Bug: 220241282
Test: atest inputflinger_tests
Change-Id: I0f678a91954a4ba2a5c6e9aca8d9200e0f368271
(cherry picked from commit 84296558)
parent a3eab26a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2350,8 +2350,8 @@ InputEventInjectionResult InputDispatcher::findTouchedWindowTargetsLocked(
                                        *touchedWindow.windowHandle->getInfo()) ||
                                 (touchedWindow.targetFlags & InputTarget::FLAG_FOREGROUND) != 0;
                     })) {
        ALOGI("Dropping event because there is no touched window on display %d to receive it.",
              displayId);
        ALOGI("Dropping event because there is no touched window on display %d to receive it: %s",
              displayId, entry.getDescription().c_str());
        injectionResult = InputEventInjectionResult::FAILED;
        goto Failed;
    }