summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Bernardo Rufino <brufino@google.com> 2021-06-11 15:59:12 +0100
committer Bernardo Rufino <brufino@google.com> 2021-06-11 16:16:38 +0100
commita9d0a53e7f5764639b1c7aad677f5fcc9bce0f38 (patch)
tree98f50744deb8e8678116204bab2b71d57de97c6c /libs/gui/LayerState.cpp
parentf1804968780f975fa8fe361c480a15e8dd85d131 (diff)
Inherit touch occlusion mode from parent w/ input info
SAW windows can use SurfaceView which creates surfaces that don't have associated windows, so they get the default BLOCK_UNTRUSTED occlusion mode. This end up blocking touches as part of go/untrusted-touches even if they are opacity compliant. To fix this, traverse parent pointers in case the surface doesn't have input info associated until we find one parent that has and inherit the occlusion mode from them, if no such parent is found nothing changes. Bug: 175369159 Test: Create SAW window w/ a SurfaceView, FLAG_NOT_TOUCHABLE and alpha = 0.5, verify touches are not blocked Test: atest android.server.wm.WindowUntrustedTouchTest Change-Id: Id3b1a557ccb86a282f51ad5ed8a0ee17ffeceb5e
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions