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

Commit 33a6eee5 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

SF: Update cursor position using drawing state

Cursor position should be using drawing state instead of
current state which may not be committed yet. The current
implementation uses current state for bounds and calculates
the layer's effective transform using the drawing state.

Bug: 123989306
Test: Connect mouse and test pointer
Change-Id: I400e1a90628e0a089e5c3bb33b5df91ae9208414
parent aa8756d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -681,7 +681,7 @@ void Layer::updateCursorPosition(const sp<const DisplayDevice>& display) {
    }

    // This gives us only the "orientation" component of the transform
    const State& s(getCurrentState());
    const State& s(getDrawingState());

    // Apply the layer's transform, followed by the display's global transform
    // Here we're guaranteed that the layer's transform preserves rects