summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2022-05-03 11:37:25 -0500
committer Chavi Weingarten <chaviw@google.com> 2022-05-05 15:42:46 +0000
commit02f564f331c95710928b56b2ae928fc7ffa67c98 (patch)
tree1b20bb32eb0e057a831a5340efbb9fb34d7c18e0 /cmds/bootanimation/BootAnimation.cpp
parenta512a9b95584576d71bed77c34596d5267fcbf28 (diff)
Set focus to WMS computed focus when embedded window drops focus
If an internal system window wants to drop focus from an embedded window, requestFocusTransfer doesn't need to be called and instead we can directly call setFocusedWindow. This fixes the case where transfer focus fails if the old focused window loses visibility by the time the transfer request arrives. The transfer won't be allowed because the old window isn't focused anymore so we can't honor the transfer request. This fix is fine for internal system windows because there's no security issue with transferring focus from embedded to something WMS computes. However, there's still a race condition for cases where apps want to transfer focus from embedded back to host when they are setting visibility on the embedded window since the embedded window can become invisible before the transfer goes through. Test: Pip Menu focus lost Fixes: 230851770 Change-Id: I09db0bbdf4db6eeaffa30275233811b13ea31132 Merged-In: I09db0bbdf4db6eeaffa30275233811b13ea31132
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions