Merge branch 'remote-desktop-dialog' into 'main'

Small fix to allow displaying a dialog from login screen

Closes gnome-remote-desktop#189

See merge request GNOME/gnome-shell!3316
This commit is contained in:
Joan Torres 2024-06-20 13:47:18 +00:00
commit 0f2f795872

View file

@ -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,