GObject.Object.prototype.is_floating

function is_floating(): Boolean {
    // Gjs wrapper for g_object_is_floating()
}
  

Checks whether object has a [floating][floating-ref] reference.

Since 2.10

Returns

true if object has a floating reference