summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-01-15 02:08:57 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-01-15 02:08:57 +0000
commitd3a6849126e3637885ec4c4469a0318ec7befbe7 (patch)
tree8ec0b83c779d3d1b7def9ced92f4be77eb93c6bf
parent1c4ac8b0f2bebc80bd060a788207ad4d3c92b415 (diff)
parent58c8f09e778b0a5e7a0dc5226ba0500e8417a58d (diff)
downloadnative-d3a6849126e3637885ec4c4469a0318ec7befbe7.tar.gz
Change-Id: I769883422923f5e067b525a0b1cfaeecef2b8f1c
-rw-r--r--services/inputflinger/InputDispatcher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/inputflinger/InputDispatcher.cpp b/services/inputflinger/InputDispatcher.cpp
index b921d954dc..e8ee73661d 100644
--- a/services/inputflinger/InputDispatcher.cpp
+++ b/services/inputflinger/InputDispatcher.cpp
@@ -1446,6 +1446,8 @@ int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime,
}
if (isWindowObscuredAtPointLocked(newTouchedWindowHandle, x, y)) {
targetFlags |= InputTarget::FLAG_WINDOW_IS_OBSCURED;
+ } else if (isWindowObscuredLocked(newTouchedWindowHandle)) {
+ targetFlags |= InputTarget::FLAG_WINDOW_IS_PARTIALLY_OBSCURED;
}
BitSet32 pointerIds;