Accepting request 491174 from home:zhengqiang:branches:GNOME:Factory

- Add gnome-shell-login-fix-session-button-can-be-clicked.patch:
  Disable session selection button when it's hidden in user switch            dialog (bsc#1034827, bgo#781482).

OBS-URL: https://build.opensuse.org/request/show/491174
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=298
This commit is contained in:
Dominique Leuenberger 2017-04-26 14:46:56 +00:00 committed by Git OBS Bridge
parent f7a23dd486
commit 992caba8a9
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,43 @@
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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 26 02:22:44 UTC 2017 - qzheng@suse.com
- Add gnome-shell-login-fix-session-button-can-be-clicked.patch:
Disable session selection button when it's hidden in user switch
dialog (bsc#1034827, bgo#781482).
-------------------------------------------------------------------
Tue Apr 25 02:52:28 UTC 2017 - qzheng@suse.com

View File

@ -56,6 +56,9 @@ Patch10: gnome-shell-970480-authprompt-wrapping-message.patch
Patch11: gs-fate318433-prevent-same-account-multi-logins.patch
# PATCH-FEATURE-SLE gnome-shell-sle-theme.patch dliang@suse.com -- Use sle theme avatar
Patch12: gnome-shell-sle-theme.patch
# PATCH-FIX-UPSTREAM gnome-shell-login-fix-session-button-can-be-clicked.patch bsc#1034827 bgo#781482 xwang@suse.com -- Disable session selection button function when it does not display.
Patch13: gnome-shell-login-fix-session-button-can-be-clicked.patch
## NOTE: Keep SLE Classic pathes at bottom.
## NOTE: Keep SLE Classic pathes at bottom.
# PATCH-FEATURE-SLE gs-sle-classic-ext.patch bnc#862615 cxiong@suse.com -- add SLE Classic support
Patch1000: gs-sle-classic-ext.patch
@ -202,6 +205,7 @@ into GNOME Shell calendar.
%patch12 -p1
%endif
%endif
%patch13 -p1
%if !0%{?is_opensuse}
%patch1000 -p1
translation-update-upstream