Associate device id with getFirstForegroundWindowHandle
Because we have supported multi-device event streams in the
InputDispatcher, but there are still some logics that use the previous
single-device stream logic. Here, associating
getFirstForegroundWindowHandle with deviceId can solve problems such as
events being dispatched to the wrong window, and windows with the same
owner listening to ACTION_OUTSIDE events without coordinates.
Bug: 328553381
Test: atest inputflinger_tests
Change-Id: I71ca90f7f7a6aa05d746fc8d3f0e0fe69d45294b
Signed-off-by:
Linnan Li <lilinnan@xiaomi.corp-partner.google.com>
Loading
Please register or sign in to comment