diff --git a/gnome-shell-login-fix-session-button-can-be-clicked.patch b/gnome-shell-login-fix-session-button-can-be-clicked.patch new file mode 100644 index 0000000..1817ecb --- /dev/null +++ b/gnome-shell-login-fix-session-button-can-be-clicked.patch @@ -0,0 +1,43 @@ +From debe4b096445e25cfc098564d6ff22e32dba5324 Mon Sep 17 00:00:00 2001 +From: Xiaoguang Wang +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 + diff --git a/gnome-shell.changes b/gnome-shell.changes index a7ad5c1..5d1c922 100644 --- a/gnome-shell.changes +++ b/gnome-shell.changes @@ -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 diff --git a/gnome-shell.spec b/gnome-shell.spec index 62ca5b5..7ac61a4 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -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