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

Commit 47ea21d5 authored by Robert Carr's avatar Robert Carr
Browse files

InputConsumer fixes

Fix some input consumer typos.

Test: Manual
Bug: 80101428
Bug: 113136004
Bug: 111440400
Change-Id: Iaf6744630e6c8cad6dbd32c4d85218467496c36e
parent 01ce8981
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ class DragState {
        t.setLayer(mInputSurface, Integer.MAX_VALUE);

        mTmpClipRect.set(0, 0, mDisplaySize.x, mDisplaySize.y);
        t.setWindowCrop(mSurfaceControl, mTmpClipRect);
        t.setWindowCrop(mInputSurface, mTmpClipRect);
    }

    /**
+3 −3
Original line number Diff line number Diff line
@@ -435,10 +435,10 @@ final class InputMonitor {
                if (mAddPipInputConsumerHandle) {
                    // Update the bounds of the Pip input consumer to match the window bounds.
                    w.getBounds(mTmpRect);
                    // The touchable region is relative to the surface top-left
                    mTmpRect.top = mTmpRect.left = 0;

                    pipInputConsumer.layout(mInputTransaction, mTmpRect);

                    // The touchable region is relative to the surface top-left
                    mTmpRect.offsetTo(0, 0);
                    pipInputConsumer.mWindowHandle.touchableRegion.set(mTmpRect);
                    pipInputConsumer.show(mInputTransaction, w);
                    mAddPipInputConsumerHandle = false;