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

Commit 1c66f44c authored by Evan Rosky's avatar Evan Rosky
Browse files

Don't crop freeform windows by policy

Freeform windows are free to move around the space, so
they shouldn't be cropped.

Bug: 131753585
Test: Observe no cropping in dumpsys output.
Change-Id: I972223a0198ec7a11529e39f5c85cfe94e3bab78
parent c61a2510
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -805,7 +805,12 @@ public class TaskStack extends WindowContainer<Task> implements
        if (width == mLastSurfaceSize.x && height == mLastSurfaceSize.y) {
        if (width == mLastSurfaceSize.x && height == mLastSurfaceSize.y) {
            return;
            return;
        }
        }
        if (getWindowConfiguration().tasksAreFloating()) {
            // Don't crop freeform windows to the stack.
            transaction.setWindowCrop(mSurfaceControl, -1, -1);
        } else {
            transaction.setWindowCrop(mSurfaceControl, width, height);
            transaction.setWindowCrop(mSurfaceControl, width, height);
        }
        mLastSurfaceSize.set(width, height);
        mLastSurfaceSize.set(width, height);
    }
    }


+1 −1
Original line number Original line Diff line number Diff line
@@ -766,7 +766,7 @@ class WindowStateAnimator {
            return false;
            return false;
        }
        }


        if (w.inPinnedWindowingMode()) {
        if (w.getWindowConfiguration().tasksAreFloating()) {
            return false;
            return false;
        }
        }