summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2021-11-10 02:55:28 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-10 02:55:28 +0000
commite26b6061f8133757f72f4ec38f094a6c95eed0ac (patch)
tree933ba6fe32e043baaaf6ef807f799f7bf784f161
parentd666af6990e23d2b7faa1a3dca8ce7732e3e38e6 (diff)
parent224d576c0bd7f5c29356f208d60fcfa274671c52 (diff)
downloadnative-e26b6061f8133757f72f4ec38f094a6c95eed0ac.tar.gz
Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/16185286 Change-Id: I49fb56b83a8799ac6a380b269bca06adc5289aba
-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;