mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
screenShield: Don't wait until the dialog is loaded before opening it
If we wait asynchronously, key presses while the shield is opening will be dropped in the void. https://bugzilla.gnome.org/show_bug.cgi?id=686740
This commit is contained in:
parent
67615a0cbc
commit
127f10e7a8
3 changed files with 7 additions and 23 deletions
|
|
@ -1014,7 +1014,7 @@ const LoginDialog = new Lang.Class({
|
|||
function() {
|
||||
// If we're just starting out, start on the right
|
||||
// item.
|
||||
if (!this.is_loaded) {
|
||||
if (!this._userManager.is_loaded) {
|
||||
this._userList.jumpToItem(this._timedLoginItem);
|
||||
}
|
||||
},
|
||||
|
|
@ -1152,15 +1152,6 @@ const LoginDialog = new Lang.Class({
|
|||
Lang.bind(this, function(userManager, user) {
|
||||
this._userList.removeUser(user);
|
||||
}));
|
||||
|
||||
// emitted in idle so caller doesn't have to explicitly check if
|
||||
// it's loaded immediately after construction
|
||||
// (since there's no way the caller could be listening for
|
||||
// 'loaded' yet)
|
||||
Mainloop.idle_add(Lang.bind(this, function() {
|
||||
this.emit('loaded');
|
||||
this.is_loaded = true;
|
||||
}));
|
||||
},
|
||||
|
||||
_onOpened: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue