[gnome-shell/gbsneto/new-lock-screen: 20/22] unlockDialog: Show auth prompt on tap



commit 22534c4c64d09fa6510779996f5d3c53df689a5e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Oct 15 15:39:07 2019 +0200

    unlockDialog: Show auth prompt on tap

 js/ui/unlockDialog.js | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index fe7bef1f91..8a26156390 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]