Loading services/core/java/com/android/server/wm/WindowState.java +5 −1 Original line number Diff line number Diff line Loading @@ -4314,7 +4314,11 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP // If a freeform window is animating from a position where it would be cutoff, it would be // cutoff during the animation. We don't want that, so for the duration of the animation // we ignore the decor cropping and depend on layering to position windows correctly. final boolean cropToDecor = !(inFreeformWindowingMode() && isAnimatingLw()); // We also ignore cropping when the window is currently being drag resized in split screen // to prevent issues with the crop for screenshot. final boolean cropToDecor = !(inFreeformWindowingMode() && isAnimatingLw()) && !isDockedResizing(); if (cropToDecor) { // Intersect with the decor rect, offsetted by window position. systemDecorRect.intersect(decorRect.left - left, decorRect.top - top, Loading Loading
services/core/java/com/android/server/wm/WindowState.java +5 −1 Original line number Diff line number Diff line Loading @@ -4314,7 +4314,11 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP // If a freeform window is animating from a position where it would be cutoff, it would be // cutoff during the animation. We don't want that, so for the duration of the animation // we ignore the decor cropping and depend on layering to position windows correctly. final boolean cropToDecor = !(inFreeformWindowingMode() && isAnimatingLw()); // We also ignore cropping when the window is currently being drag resized in split screen // to prevent issues with the crop for screenshot. final boolean cropToDecor = !(inFreeformWindowingMode() && isAnimatingLw()) && !isDockedResizing(); if (cropToDecor) { // Intersect with the decor rect, offsetted by window position. systemDecorRect.intersect(decorRect.left - left, decorRect.top - top, Loading