/*
 * Get the visibility of the main window.
 *
 * Examples:
 *   puts 'main window visible' if remote.main_visible?
 *   puts 'main window visible' if remote.main?
 *
 */
static VALUE xr_is_main(VALUE self) {