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

Commit f4369fe1 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "Crop touchable region to surface bounds when updating an InputChannel" into tm-qpr-dev

parents a98b34d5 7a418bbf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -8684,11 +8684,12 @@ public class WindowManagerService extends IWindowManager.Stub
        h.ownerPid = callingPid;

        if (region == null) {
            h.replaceTouchableRegionWithCrop = true;
            h.replaceTouchableRegionWithCrop(null);
        } else {
            h.touchableRegion.set(region);
            h.replaceTouchableRegionWithCrop = false;
            h.setTouchableRegionCrop(surface);
        }
        h.setTouchableRegionCrop(null /* use the input surface's bounds */);

        final SurfaceControl.Transaction t = mTransactionFactory.get();
        t.setInputWindowInfo(surface, h);