Merge branch 'lid-open-prompt' into 'main'

unlockDialog: Prompt for auth on lid open

Closes #7077

See merge request GNOME/gnome-shell!2977
This commit is contained in:
John Marion 2024-06-24 23:00:51 +00:00
commit c32bdd39fd

View file

@ -534,6 +534,9 @@ export const UnlockDialog = GObject.registerClass({
tapAction.connect('tap', this._showPrompt.bind(this)); tapAction.connect('tap', this._showPrompt.bind(this));
this.add_action(tapAction); this.add_action(tapAction);
global.backend.connectObject('lid-is-closed-changed',
this._showPrompt.bind(this), this);
// Background // Background
this._backgroundGroup = new Clutter.Actor(); this._backgroundGroup = new Clutter.Actor();
this.add_child(this._backgroundGroup); this.add_child(this._backgroundGroup);