mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
accessDialog: Allow displaying a dialog when no focus_app is found
This allows the g-r-d daemon (which is not a window and can't be considered a focus app) to display a dialog to inform when the connection is insecure.
This commit is contained in:
parent
1bab7b32e5
commit
86443e7220
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ export class AccessDialogDBus {
|
|||
let [handle, appId, parentWindow_, title, description, body, options] = params;
|
||||
// We probably want to use parentWindow and global.display.focus_window
|
||||
// for this check in the future
|
||||
if (appId && `${appId}.desktop` !== this._windowTracker.focus_app.id) {
|
||||
if (appId && this._windowTracker.focus_app && `${appId}.desktop` !== this._windowTracker.focus_app.id) {
|
||||
invocation.return_error_literal(
|
||||
Gio.DBusError,
|
||||
Gio.DBusError.ACCESS_DENIED,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue