unlockDialog: Show auth prompt on tap

This commit is contained in:
Georges Basile Stavracas Neto 2019-10-15 15:39:07 +02:00
parent cd1c45731d
commit 22534c4c64

View File

@ -378,9 +378,16 @@ var UnlockDialog = GObject.registerClass({
super._init({
accessible_role: Atk.Role.WINDOW,
style_class: 'login-dialog',
reactive: true,
visible: false,
});
let tapAction = new Clutter.TapAction();
tapAction.connect('tap', () => {
this._showAuth();
})
this.add_action(tapAction);
this.add_constraint(new Layout.MonitorConstraint({ primary: true }));
parentActor.add_child(this);