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

Commit 5d093a0c authored by Qijing Yao's avatar Qijing Yao
Browse files

Shrink oversize windows after dragged to a smaller display

This change shrinks oversized windows to ensure they fit when dragged to
a new display.

An "overhang area" is defined by extending each edge of the display with
a small margin. The new constrainBoundsForDisplay function uses this
area by:
- Clipping resizable windows to fit within the overhang area.
- Scaling non-resizable windows down to fit the overhang area,
  preserving their aspect ratio.

Flag: com.android.window.flags.enable_shrink_window_bounds_after_drag
Bug: 403486903
Test: manual
Change-Id: I31b7f3fb6bd7d56d55b783891e11027c994873b3
parent 8e929602
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment