summaryrefslogtreecommitdiff
path: root/tools/codegen/src
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-02-24 01:52:13 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-03-13 21:18:54 +0000
commit692bbdb3a8ec16753ba37b65bba2b1b09eb3dad7 (patch)
treeae60a169eeb6b00bcecda16575b316f1e657cf1e /tools/codegen/src
parent07937a009ae0a5f11c818a0bd2b0458e92aed8dc (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 'tools/codegen/src')
0 files changed, 0 insertions, 0 deletions