summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayLuts.cpp
diff options
context:
space:
mode:
author Linnan Li <lilinnan@xiaomi.corp-partner.google.com> 2024-04-12 18:55:57 +0800
committer Siarhei Vishniakou <svv@google.com> 2024-05-07 18:50:32 -0700
commit7235222ce7993305b861674a7b2b7f73db40676b (patch)
treefa8b7fa3e702cc3812fde470cb1018c45ed17e04 /libs/gui/DisplayLuts.cpp
parentaabfce6962d30fa96cd612ec880e2c8ceca5e9b0 (diff)
Associate device id with getWallpaperWindow
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 getWallpaperWindow with deviceId can solve wallpaper window is wrong issue in event transfer. In addition to that, this patch also attempts to fix an issue where the foreground target window with a wallpaper could not receive subsequent remaining events after a transferTouchGesture. This is because, in transferWallpaperTouch, we merged part of the state from the InputState of the target foreground window into its corresponding wallpaper window, causing the firstNewPointerIdx in its InputState to be reset. Here, we try to resolve this issue by moving the synthesis operation of the down event for the target foreground window to after the transferWallpaperTouch. Bug: 328718622 Test: atest inputflinger_tests Change-Id: If1085c8aefd962cf1e05b7bf68d87c9f2c8bacc9 Signed-off-by: Linnan Li <lilinnan@xiaomi.corp-partner.google.com>
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions