monitor: Keep track of the for lease status

Add a flag to MetaMonitor indicating if the monitor is available for
lease and store/update it from the monitor configuration.

Also, add unit tests validating that the configuration is applied and
that invalid configurations fail.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4112>
This commit is contained in:
José Expósito
2024-10-28 08:44:35 +01:00
committed by Marge Bot
parent 406de0d6d7
commit f93e85f69b
9 changed files with 316 additions and 1 deletions

View File

@ -156,6 +156,7 @@ meta_monitor_manager_native_ensure_initial_config (MetaMonitorManager *manager)
config = meta_monitor_manager_ensure_configured (manager);
meta_monitor_manager_update_logical_state (manager, config);
meta_monitor_manager_update_for_lease_state (manager, config);
}
static void