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

Commit 8c69d9ff authored by Jorge Gil's avatar Jorge Gil
Browse files

Desks: Add desk creation limit

Adds a config_maxDesktopWindowingDesks to put a limit on the number of
desks a user can create. The limit is an overall system limit, not per
display. A limit of 0 means unlimited.

This change checks this limit before creating new desks, except when the
request comes as a result of connected display changes, to allow a newly
connected displays to obtain at least 1 desk even if the user was
already at the limit prior to the connection.

Flag: com.android.window.flags.enable_multiple_desktops_backend
Fix: 393962589
Test: override the config with the sysprop, try to create more than the
limit and verify it does not succeed
Test: atest WMShellUnitTests

Change-Id: Id52bd3303d8ac0fcf7e06785fafd3d0c218135ea
parent b8661f84
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