monitor-manager: Ensure monitors settings after backend has been updated
The monitors settings such as the privacy screen property is propagated to the monitors via kms updates, however during initialization and on monitors changes, we end up clearing the pending KMS updates because such settings are added to the queue before the backend has fully initialized the monitors, and this may lead to discarding all the pending updates, including the one we've just planned. To avoid this, move settings applications after we've both initialized the backend and notified it about changes. Also avoid to try set the settings during actual initialization, but delay that after post-init. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2372>
This commit is contained in:

committed by
Marge Bot

parent
8ec8a26717
commit
c93e402a89
@ -70,6 +70,7 @@ typedef enum _MetaLogicalMonitorLayoutMode
|
||||
typedef enum
|
||||
{
|
||||
META_PRIVACY_SCREEN_CHANGE_STATE_NONE,
|
||||
META_PRIVACY_SCREEN_CHANGE_STATE_INIT,
|
||||
META_PRIVACY_SCREEN_CHANGE_STATE_PENDING_HOTKEY,
|
||||
META_PRIVACY_SCREEN_CHANGE_STATE_PENDING_SETTING,
|
||||
} MetaPrivacyScreenChangeState;
|
||||
|
Reference in New Issue
Block a user