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

Skip to content
Commit 9cada03f authored by Robert Carr's avatar Robert Carr Committed by Rob Carr
Browse files

DO NOT MERGE: InputDispatcher: Consider ownerPid in FLAG_OBSCURED calculations

Now that we are receiving an InputWindowHandle for each buffered surface
we need to take care not to introduce any behavior changes:
  1. Previously a SurfaceView on top of a main app window
     would not obscure that application for Input purposes (since
     it was unknown to InputDispatcher). We preserve this semantic
     by not considering windows from the same ownerPid as occluding
     eachother.
  2. However previously, windows WITH input channels from the same process
     would generate FLAG_OCCLUDED so we also preserve this semantic by
     only implementing the new semantic from 1 when channel is null.

Bug: 152064592
Test: ObscuredInputTests
Change-Id: If45acfd8b63c5ebd68bc219bc0fb6ee1c34650cd
parent 9bb4cfb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment