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

Commit d7573766 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Don't apply overscan insets to freeform windows."

parents 411228fe 01ef404d
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -751,15 +751,16 @@ final class WindowState implements WindowManagerPolicy.WindowState {
                    Math.min(mStableFrame.bottom, frame.bottom));
        }

        if (!inFreeformWorkspace()) {
            // Freeform windows can be positioned outside of the display frame, but that is not a
            // reason to provide them with overscan insets.
            mOverscanInsets.set(Math.max(mOverscanFrame.left - frame.left, 0),
                    Math.max(mOverscanFrame.top - frame.top, 0),
                    Math.max(frame.right - mOverscanFrame.right, 0),
                    Math.max(frame.bottom - mOverscanFrame.bottom, 0));


        }

        if (mAttrs.type == TYPE_DOCK_DIVIDER) {

            // For the docked divider, we calculate the stable insets like a full-screen window
            // so it can use it to calculate the snap positions.
            mStableInsets.set(Math.max(mStableFrame.left - mDisplayFrame.left, 0),