Gtk.Window.prototype.get_opacity

function get_opacity():Number {
    // Gjs wrapper for gtk_window_get_opacity()
}

Fetches the requested opacity for this window. See Gtk.set_opacity.

Since 2.12

Returns

the requested opacity for this window.