backends: Centralize panel autorotation in a DisplayConfig property

Instead of having everyone check net.hadess.SensorProxy themselves, have
this all controlled by the MetaOrientationManager, and proxied everywhere
else via a readonly property in org.gnome.Mutter.DisplayConfig.

We want to attach more complex policies here, and it seems better to
centralize the handling of the autorotation feature rather than
implementing policy changes all over the place.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1311
This commit is contained in:
Carlos Garnacho
2020-06-11 18:15:22 +02:00
parent 7f9949a5e3
commit 1acf744473
4 changed files with 62 additions and 0 deletions

View File

@ -129,6 +129,8 @@ struct _MetaMonitorManager
int persistent_timeout_id;
guint panel_orientation_managed : 1;
MetaMonitorConfigManager *config_manager;
GnomePnpIds *pnp_ids;