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

Commit 43b69c60 authored by Stefan Kuhne's avatar Stefan Kuhne Committed by Android (Google) Code Review
Browse files

Merge "Don't clip task windows in some workspaces"

parents bead6bcc 234dbf87
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.server.wm;
import static com.android.server.wm.WindowManagerService.TAG;
import static com.android.server.wm.WindowManagerService.DEBUG_RESIZE;
import static com.android.server.wm.WindowManagerService.DEBUG_STACK;
import static android.app.ActivityManager.FREEFORM_WORKSPACE_STACK_ID;

import android.content.res.Configuration;
import android.graphics.Rect;
@@ -176,11 +177,13 @@ class Task implements DimLayer.DimLayerUser {
                bounds = mTmpRect;
                mFullscreen = true;
            } else {
                if (mStack.mStackId != FREEFORM_WORKSPACE_STACK_ID || bounds.isEmpty()) {
                    // ensure bounds are entirely within the display rect
                    if (!bounds.intersect(mTmpRect)) {
                        // Can't set bounds outside the containing display...Sorry!
                        return false;
                    }
                }
                mFullscreen = mTmpRect.equals(bounds);
            }
        }