gnome-shell/gnome-shell-Avoid-loginDialog-grab-focus-when-locked.patch
2017-09-28 12:08:55 +00:00

28 lines
885 B
Diff

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