File gnome-shell-Avoid-loginDialog-grab-focus-when-locked.patch of Package gnome-shell.9669

From 8a46458bf59300fb73ac4d1271c80c5b9ab571c4 Mon Sep 17 00:00:00 2001
From: Xiaoguang Wang <xwang@suse.com>
Date: Tue, 26 Sep 2017 16:54:15 +0800
Subject: [PATCH] gdm: Avoid loginDialog grab focus when locked

https://bugzilla.gnome.org/show_bug.cgi?id=788169
---
 js/gdm/loginDialog.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 1cae3db85..b83129150 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -1128,7 +1128,8 @@ var LoginDialog = new Lang.Class({
         this._sessionMenuButton.close();
         this._setUserListExpanded(true);
         this._notListedButton.show();
-        this._userList.actor.grab_key_focus();
+        if (!Main.screenShield.locked)
+            this._userList.actor.grab_key_focus();
     },
 
     _beginVerificationForItem: function(item) {
-- 
2.12.3

openSUSE Build Service is sponsored by