static gboolean randr_output_is_on (GnomeRROutput *output) { GnomeRRCrtc *crtc; crtc = gnome_rr_output_get_crtc (output); if (!crtc) return FALSE; return gnome_rr_crtc_get_current_mode (crtc) != NULL; }
void gnome_rr_output_get_position (GnomeRROutput *output, int *x, int *y) { GnomeRRCrtc *crtc; g_return_if_fail (output != NULL); if ((crtc = gnome_rr_output_get_crtc (output))) gnome_rr_crtc_get_position (crtc, x, y); }
GnomeRRMode * gnome_rr_output_get_current_mode (GnomeRROutput *output) { GnomeRRCrtc *crtc; g_return_val_if_fail (output != NULL, NULL); if ((crtc = gnome_rr_output_get_crtc (output))) return gnome_rr_crtc_get_current_mode (crtc); return NULL; }