Gtk.Window.prototype.get_modal

function get_modal():Boolean {
    // Gjs wrapper for gtk_window_get_modal()
}

Returns whether the window is modal. See Gtk.set_modal.

Returns

true if the window is set to be modal and establishes a grab when shown