Gtk.Window.prototype.set_accept_focus

function set_accept_focus(setting:Boolean):void {
    // Gjs wrapper for gtk_window_set_accept_focus()
}

Windows may set a hint asking the desktop environment not to receive the input focus. This function sets this hint.

Since 2.4

setting

true to let this window receive input focus