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
Loading
Please register or sign in to comment