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

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(-)

Index: gnome-shell-3.30.1/js/gdm/loginDialog.js
===================================================================
--- gnome-shell-3.30.1.orig/js/gdm/loginDialog.js	2018-10-08 21:33:22.000000000 +0200
+++ gnome-shell-3.30.1/js/gdm/loginDialog.js	2018-10-22 20:25:19.894377588 +0200
@@ -1126,7 +1126,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(item) {