Skip to content

Commit 0dfe1cf

Browse files
author
Jean-Baptiste Queru
committed
Merge into jb-mr1-dev
Change-Id: Id8bbccaa542bef3351958fb6749370880a1921f3
2 parents 07e35aa + 3671410 commit 0dfe1cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services/java/com/android/server/wm/WindowStateAnimator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,10 @@ void updateSurfaceWindowCrop(final boolean recoveringMemory) {
10561056
w.mSystemDecorRect.set(0, 0, w.mRequestedWidth, w.mRequestedHeight);
10571057
} else if (!w.isDefaultDisplay()) {
10581058
// On a different display is easy, just use the entire display.
1059-
w.mSystemDecorRect.set(0, 0, displayInfo.logicalWidth, displayInfo.logicalHeight);
1059+
w.mSystemDecorRect.set(0, 0, w.mCompatFrame.width(), w.mCompatFrame.height());
1060+
w.mSystemDecorRect.intersect(-w.mFrame.left, -w.mFrame.top,
1061+
displayInfo.logicalWidth - w.mFrame.left,
1062+
displayInfo.logicalHeight - w.mFrame.top);
10601063
} else if (w.mLayer >= mService.mSystemDecorLayer) {
10611064
// Above the decor layer is easy, just use the entire window.
10621065
// Unless we have a universe background... in which case all the

0 commit comments

Comments
 (0)