summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-02-24 14:38:25 -0800
committer Vishnu Nair <vishnun@google.com> 2021-02-25 12:25:09 -0800
commit1dcad9858006c650b0f25a31e87975f183e86dd0 (patch)
tree70f681bc39b3f2e0303f6c69041d04493cebb323 /libs/gui/BufferQueueThreadState.cpp
parenta8bad0e28a3ba92eed11b75d1e18f00b79f70efa (diff)
FocusResolver: Persist focus requests
When WM provides a focus request, the request is handled or kept in a pending state until the window becomes visible. The request is dropped in all other cases such as the window handle does not have the focusable flag set. This might lead to cases where a focus request is dropped as a result of state mismatch or synchronization issues between wm and sf. This fix makes the focus request persistent and better aligns with the previous model where the focus bit was set as part of the window handle. This means a request will be handled as long as the window is focusable or replaced by another request. If the window toggles its focusability, it will lose and gain focus. Test: atest inputflinger_tests Test: go/wm-smoke Test: atest atest FlickerTests Bug: 176451870 Change-Id: I790a4b69c15f595109118d49167cf9a450e67ec9
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions