summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Jorge Gil <jorgegil@google.com> 2024-02-26 21:55:37 +0000
committer Jorge Gil <jorgegil@google.com> 2024-02-28 22:29:10 +0000
commited08abec8ae9b3c11d689f870e011718c49cf4ab (patch)
tree5119e9cb5eafb7f92f9a72ad3954a64f9c7e761c /libs/androidfw/misc.cpp
parenta97ab2947eeed04d38b8824b303ad0b37b9b49a5 (diff)
Allow input to fall through custom caption region
Make the caption window in Desktop Mode a spy window when the transparent caption flag is requested. Then, when MotionEvents on the caption bar, issue cancellations if the gesture did not start within the bounds of the customizable space and the gesture exclusion bounds reported by the window. This allows input to fall through uncancelled to customizable app content as long as they've placed it in non-occluding caption regions and they requested to take over input in that region. Otherwise, the system will handle the events as a caption gesture (drag, double-tap, etc). Other window decoration types (app handle, non-desktop freeform caption) do not support this feature, so their caption window is not spy. Bug: 316387515 Test: atest WMShellUnitTests Change-Id: Ibb966a15fa3befe1f1dec802e448a973671ac645
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions