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

Commit 03a0d2d8 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Follow up on mouse cleanup after PointerChoreographer refactor

Addressing additional comments from change:
I4be21303d0c809a9e8e14854faf213a0d41fddf1

Bug: 311416205
Change-Id: I4b259ca8d5ba4d94fbae8e22ae79e1411621027e
Test: presubmit
parent 150407d3
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -507,7 +507,6 @@ void CursorInputMapper::configureOnChangeDisplayInfo(const InputReaderConfigurat

    mDisplayId = ADISPLAY_ID_NONE;
    std::optional<DisplayViewport> resolvedViewport;
    bool isBoundsSet = false;
    if (auto assocViewport = mDeviceContext.getAssociatedViewport(); assocViewport) {
        // This InputDevice is associated with a viewport.
        // Only generate events for the associated display.
@@ -526,14 +525,12 @@ void CursorInputMapper::configureOnChangeDisplayInfo(const InputReaderConfigurat
            ? ui::ROTATION_0
            : getInverseRotation(resolvedViewport->orientation);

    if (!isBoundsSet) {
    mBoundsInLogicalDisplay = resolvedViewport
            ? FloatRect{static_cast<float>(resolvedViewport->logicalLeft),
                        static_cast<float>(resolvedViewport->logicalTop),
                        static_cast<float>(resolvedViewport->logicalRight - 1),
                        static_cast<float>(resolvedViewport->logicalBottom - 1)}
            : FloatRect{0, 0, 0, 0};
    }

    bumpGeneration();
}