summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayLuts.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-02-02 00:16:17 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-02-06 02:10:02 +0000
commit4b9b1a1de40dd6fb02c6b26f63ee1e4755570bf6 (patch)
tree486b3254617b7e2f210d1f4ddbbd763f12d2009b /libs/gui/DisplayLuts.cpp
parentfa2c69f6653b1002c790d3449b79454dc89ac671 (diff)
InputDispatcher: Send cancellations from losing focus windows
An input channel must have at least one focusable window to gain focus. When focus changes, we send cancellations for all of the non-pointer event streams going to the previously focused window. Send these cancellations to a window instead of directly to the channel so that events are always associated with a window. We track focus by token, and there can be more than one window for a token/input channel. For such cases, we pick the first window (i.e. the top-most window) with the focused token as the target, for convenience. Bug: 210460522 Test: atest inputflinger_tests Change-Id: I63990ccfca1f5ef013f6f08ce6336b4a961c20d6
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions