Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4c0c6a87 authored by Sandro Meier's avatar Sandro Meier
Browse files

Align moving display to top behavior

The behavior of moving a display to top was different based on
perDisplayFocusEnabled. In the perDisplayFocusEnabled=true case only a
tap on the screen, but not a targeted key would move the display to the
top. To simplify the logic this change makes
the behavior the same for both cases: A targeted key, as well as a touch
on a display moves that display to top.

See also b/121057974, which introduced the behavior.
Note that this change does not affect the window focus behavior.
Displays have a window focus anyway with perDisplayFocusEnabled=true.
Note that the behavior for perDisplayFocusEnabled=false stays unchanged.

Bug: 254161477
Test: atest "CtsWindowManagerDeviceTestCases:android.server.wm.WindowFocusTests"
Test: atest "CtsWindowManagerDeviceTestCases:android.server.wm.MultiDisplayPolicyTests"
Change-Id: I52467f028b012ac2abdcb1838d4752e5e4bc4693
parent f53c3746
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment