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

Commit e7c4474a authored by Tiger Huang's avatar Tiger Huang Committed by android-build-merger
Browse files

Refine onPointerDownOutsideFocus

am: 0683fe79

Change-Id: Ie0511b7c883c6b93cd20bdbf1bdd909476f6d81e
parents d87fe8d7 0683fe79
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2172,9 +2172,8 @@ void InputDispatcher::dispatchPointerDownOutsideFocus(uint32_t source, int32_t a
        return;
    }

    int32_t displayId = inputWindowHandle->getInfo()->displayId;
    sp<InputWindowHandle> focusedWindowHandle =
            getValueByKey(mFocusedWindowHandlesByDisplay, displayId);
            getValueByKey(mFocusedWindowHandlesByDisplay, mFocusedDisplayId);

    bool hasFocusChanged = !focusedWindowHandle || focusedWindowHandle->getToken() != newToken;