diff options
author | 2023-02-24 01:52:13 +0000 | |
---|---|---|
committer | 2023-03-13 21:18:54 +0000 | |
commit | 692bbdb3a8ec16753ba37b65bba2b1b09eb3dad7 (patch) | |
tree | ae60a169eeb6b00bcecda16575b316f1e657cf1e /libs/input/PointerController.h | |
parent | 07937a009ae0a5f11c818a0bd2b0458e92aed8dc (diff) |
Get mouse cursor position from PointerController instead of WM
PointerController is the source of truth of the mouse cursor position.
When the VirtualDevice APIs queried the cursor position, we were
previously getting the position from WM. WM's values only update once
system_server's global monitor has processed the input event, which
leads us into a race condition.
Remove the race consition by querying the mouse cursor position directly
from PointerController.
Bug: 266687189
Test: atest VirtualMouseTest
Change-Id: Id0e0e20a0d547f969d3a27d43fdfdca34d0fa7c0
Diffstat (limited to 'libs/input/PointerController.h')
0 files changed, 0 insertions, 0 deletions