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

Commit fc90c132 authored by Tiger Huang's avatar Tiger Huang
Browse files

Update input windows when moving display to top

If per-display focus is not enabled, moving display to top may cause
the focus change. We need to update input windows to keep input
dispatcher up-to-date.

Change-Id: I7934dd76395f249c3b4c1d30f15d15436a1cebf0
Fix: 121303595
Fix: 121343696
Test: atest ActivityManagerDisplayLockedKeyguardTests
parent 7f8c5ac3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -198,7 +198,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>

    @Override
    void onChildPositionChanged() {
        mWmService.updateFocusedWindowLocked(UPDATE_FOCUS_NORMAL, false /* updateInputWindows */);
        mWmService.updateFocusedWindowLocked(UPDATE_FOCUS_NORMAL,
                !mWmService.mPerDisplayFocusEnabled /* updateInputWindows */);
    }

    DisplayContent getDisplayContent(int displayId) {