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

Skip to content
Commit 7d03038b authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

InputDispatcher: Call setPointerCapture when resetting Pointer Capture

In InputDispatcher, mFocusedWindowRequestedPointerCapture must be in
sync with the Pointer Capture state in InputReaderConfiguration.
InputDispatcher is responsible for updating the latter by calling
InputDispatcherPolicyInterface::setPointerCapture().

Before, if InputDispatcher received a pointerCaptureChanged notification
unexpectedly from Reader, Pointer Capture would be "reset" to the
disabled state without notifying the policy. In such a case, the Pointer
Capture state in the policy could be out of sync with that in
InputDispatcher. While Reader should never send such an unexpected
notification in Android, the policy should nevertheless be updated for
sake of correctness.

Bug: 141749603
Test: atest inputflinger_tests

Change-Id: Ida53ad980607bcc7b371b614bd89328842196862
parent 14e5146d
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