summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayLuts.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-02-01 20:31:34 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-02-06 02:10:02 +0000
commitfa2c69f6653b1002c790d3449b79454dc89ac671 (patch)
tree373ab1efbc41f5cd084548632c193346e1d8e4dd /libs/gui/DisplayLuts.cpp
parent6c8661ac9cf6c96d9deeacc87acbf9bdaef24fae (diff)
InputDispatcher: Only dispatch fallback keys when there's a window
InputDispatcher has an invariant where an input channel must have a window for dispatcher to be able to target an event to the channel (i.e. enqueue the event onto the channel's outbound queue - excluding global monitors). Fallback key handling logic seems to be the only place where this invariant does not explicitly hold. In this CL, we add checks to the fallback logic to uphold this invariant and ensure the channel has at least one window before generating events for it. Bug: 210460522 Test: atest inputflinger_tests Change-Id: I76ef8b559150a44dc98ea42e52fa92a6b90cde3a
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions