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

Commit c49b8a12 authored by Garfield Tan's avatar Garfield Tan
Browse files

Stop making copies when updating input channels

Bug: 244586478
Test: No window decor layers in offscreen layers.
Change-Id: Ib8cb9e30a0c078fe959037135a51261aa13ac31b
parent c6a2b7e2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ class DragResizeInputListener implements AutoCloseable {
        try {
            mWindowSession.grantInputChannel(
                    mDisplayId,
                    new SurfaceControl(mDecorationSurface, TAG),
                    mDecorationSurface,
                    mFakeWindow,
                    null /* hostInputToken */,
                    FLAG_NOT_FOCUSABLE,
@@ -150,8 +150,7 @@ class DragResizeInputListener implements AutoCloseable {
            mWindowSession.updateInputChannel(
                    mInputChannel.getToken(),
                    mDisplayId,
                    new SurfaceControl(
                            mDecorationSurface, "DragResizeInputListener#setTouchRegion"),
                    mDecorationSurface,
                    FLAG_NOT_FOCUSABLE,
                    PRIVATE_FLAG_TRUSTED_OVERLAY,
                    touchRegion);