summaryrefslogtreecommitdiff
path: root/libs/input/InputFlags.cpp
diff options
context:
space:
mode:
author Arpit Singh <arpitks@google.com> 2025-02-20 16:35:42 +0000
committer Arpit Singh <arpitks@google.com> 2025-02-21 12:26:36 +0000
commitfc66a3aa926177c6c66c5838fc6c3803b4c82d30 (patch)
tree2a9cbd8b4a9f6904608d36378ad63365871d29dd /libs/input/InputFlags.cpp
parent3c769a4d1ba7f422e5b21d6d5f7e0f6b1ae5b2f0 (diff)
[CD Cursor] Fix cursorState lookup for non-primary displays
In connected display scenario touchstate display for mouse is always identified by primary display. At present DispatcherTouchState::forTouchAndCursorStatesOnDisplay is the only API in TouchStates that does not adhere to this mapping. This can cause the lookup for cursorState to fail. IsPointerInWindow is the only public API in dispatcher that uses this and fails. This Cl updates the lookup and adds tests for API called with the non-primary display in topology. Test: inputflinger_tests with the flag enabled/disabled Bug: 395033854 Flag: com.android.input.flags.connected_displays_cursor Change-Id: I1515171802478a7132206562e41a7586b8ca8559
Diffstat (limited to 'libs/input/InputFlags.cpp')
0 files changed, 0 insertions, 0 deletions