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

Commit 6b4d6ed0 authored by mattsziklay's avatar mattsziklay
Browse files

Use addMoveToFullscreenChanges on fullscreen launch.

When a desktop is minimized and a task contained inside it is then
launched in fullscreen, the windowing mode is always set to
WINDOWING_MODE_FULLSCREEN. However, when the display windowing is
fullscreen, the task should be set to WINDOWING_MODE_UNDEFINED to
prevent issues with future split screen transitions (see
ag/23624076 for more details).

This is already done for other freeform -> fullscreen transitions, this
CL just applies the logic to task launches.

Bug: 372809656
Test: Manual
Flag: EXEMPT bugfix
Change-Id: Ib05f7b9912d3cc3b834b9e3217a56337de3c163d
parent 73439919
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1603,6 +1603,13 @@ class DesktopTasksController(
                    transition, wct, task.displayId
                )
            }
        } else if (taskRepository.isActiveTask(task.taskId)) {
            // If a freeform task receives a request for a fullscreen launch, apply the same
            // changes we do for similar transitions. The task not having WINDOWING_MODE_UNDEFINED
            // set when needed can interfere with future split / multi-instance transitions.
            return WindowContainerTransaction().also { wct ->
                addMoveToFullscreenChanges(wct, task)
            }
        }
        return null
    }