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

Commit 751f87fd authored by Garfield Tan's avatar Garfield Tan Committed by Automerger Merge Worker
Browse files

Merge "Allow touch regions beyond layers from task managers" into udc-dev am: 33f5312f

parents ef1bd038 33f5312f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -8703,8 +8703,14 @@ public class WindowManagerService extends IWindowManager.Stub
        } else {
            h.touchableRegion.set(region);
            h.replaceTouchableRegionWithCrop = false;

            // Task managers may need to receive input events around task layers to resize tasks.
            final int permissionResult = mContext.checkPermission(
                    permission.MANAGE_ACTIVITY_TASKS, callingPid, callingUid);
            if (permissionResult != PackageManager.PERMISSION_GRANTED) {
                h.setTouchableRegionCrop(surface);
            }
        }

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