mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
screenShield: Activate dialog when necessary
Activating a dialog is slightly different from opening it; the former is about showing the user authentication widgetry, while the latter is about creating it and pre-allocating the necessary resources. Activate the screen shield dialog when necessary. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
This commit is contained in:
parent
e42700a308
commit
7851069d9c
3 changed files with 14 additions and 4 deletions
|
|
@ -159,8 +159,8 @@ var ScreenShield = class {
|
|||
|
||||
_liftShield() {
|
||||
if (this._isLocked) {
|
||||
if (this._ensureUnlockDialog(true /* allowCancel */))
|
||||
this._hideLockScreen(true /* animate */);
|
||||
this._ensureUnlockDialog(true /* allowCancel */);
|
||||
this._dialog.activate();
|
||||
} else {
|
||||
this.deactivate(true /* animate */);
|
||||
}
|
||||
|
|
@ -437,6 +437,7 @@ var ScreenShield = class {
|
|||
}
|
||||
|
||||
this._dialog.allowCancel = allowCancel;
|
||||
this._dialog.grab_key_focus();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue