File gnome-shell-login-fix-session-button-can-be-clicked.patch of Package gnome-shell.openSUSE_Leap_42.3_Update

From debe4b096445e25cfc098564d6ff22e32dba5324 Mon Sep 17 00:00:00 2001
From: Xiaoguang Wang <xwang@suse.com>
Date: Wed, 19 Apr 2017 13:29:59 +0800
Subject: [PATCH] loginDialog: Fix session button can be clicked

When session menu button is hidden, button can be clicked and show popup
menu.

https://bugzilla.gnome.org/show_bug.cgi?id=781482
---
 js/gdm/loginDialog.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 0b6c0b50a..a43544742 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -775,10 +775,12 @@ const LoginDialog = new Lang.Class({
     },
 
     _onPrompted: function() {
-        this._sessionMenuButton.updateSensitivity(true);
+        this._sessionMenuButton.updateSensitivity(false);
 
-        if (this._shouldShowSessionMenuButton())
+        if (this._shouldShowSessionMenuButton()) {
+            this._sessionMenuButton.updateSensitivity(true);
             this._authPrompt.setActorInDefaultButtonWell(this._sessionMenuButton.actor);
+	}
         this._showPrompt();
     },
 
@@ -881,6 +883,7 @@ const LoginDialog = new Lang.Class({
                                                       }));
         this._updateCancelButton();
 
+        this._sessionMenuButton.updateSensitivity(false);
         this._authPrompt.updateSensitivity(true);
         this._showPrompt();
     },
-- 
2.12.0
openSUSE Build Service is sponsored by