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

Commit 0b842915 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Ultrasound: Fix off-screen display window frame size overwrite"

parents a384b35c 266d0d0f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -182,6 +182,8 @@ final class InputMonitor implements InputManagerService.WindowManagerCallbacks {
            DisplayContent offScreenDisplayContent =
                mService.getDigitalPenOffScreenDisplayContentLocked();

            Rect touchableRegion = new Rect();

            if ((!DigitalPenOffScreenDisplayAdapter.isDigitalPenDisabled())
                && (null != offScreenDisplayContent)
                && (child.getDisplayId() == offScreenDisplayContent.getDisplayId())) {
@@ -189,11 +191,11 @@ final class InputMonitor implements InputManagerService.WindowManagerCallbacks {
                // display, make the touchable region the entire frame. Using
                // getStackBounds() will yield the bounds of the activity which
                // is on the main display - not what we want.
                mTmpRect = child.getFrameLw();
                touchableRegion = child.getFrameLw();
            } else {
                child.getStackBounds(mTmpRect);
                child.getStackBounds(touchableRegion);
            }
            inputWindowHandle.touchableRegion.set(mTmpRect);
            inputWindowHandle.touchableRegion.set(touchableRegion);
        } else {
            // Not modal or full screen modal
            child.getTouchableRegion(inputWindowHandle.touchableRegion);