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

Commit 234dbf87 authored by Stefan Kuhne's avatar Stefan Kuhne
Browse files

Don't clip task windows in some workspaces

Bug: 23176762
Change-Id: I5bf40fbb8794ccb26650a376ded6d75ac425ac29
parent df10f498
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);
            }
        }