summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2009-05-31 13:08:29 -0500
committerFederico Mena Quintero <federico@novell.com>2009-06-08 19:15:14 -0500
commit586ecbbc7f8d4192b7c89be6fe7a22ddf2bd027e (patch)
treefefacc45f7adc6c74ad3b5eb8d7b9b71907c6870
parentf0dd08333c8097b68f86dd7c2e10b5d82dda10b9 (diff)
downloadgnome-desktop-randr-hotplug.tar.gz
Comments to clarify the meaning of 'on', 'connected', 'clone'randr-hotplug
Signed-off-by: Federico Mena Quintero <federico@novell.com>
-rw-r--r--libgnome-desktop/libgnomeui/gnome-rr-config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libgnome-desktop/libgnomeui/gnome-rr-config.h b/libgnome-desktop/libgnomeui/gnome-rr-config.h
index c04a59ef..7e54b09d 100644
--- a/libgnome-desktop/libgnomeui/gnome-rr-config.h
+++ b/libgnome-desktop/libgnomeui/gnome-rr-config.h
@@ -45,7 +45,7 @@ struct GnomeOutputInfo
{
char * name;
- gboolean on;
+ gboolean on; /* whether there is a CRTC assigned to this output (i.e. a signal is being sent to it) */
int width;
int height;
int rate;
@@ -53,7 +53,7 @@ struct GnomeOutputInfo
int y;
GnomeRRRotation rotation;
- gboolean connected;
+ gboolean connected; /* whether the output is physically connected to a monitor */
char vendor[4];
guint product;
guint serial;
@@ -67,6 +67,10 @@ struct GnomeOutputInfo
struct GnomeRRConfig
{
+ /* "clone" means that at least two outputs are at (0, 0) offset and they
+ * have the same width/height. Those outputs are of course connected and on
+ * (i.e. they have a CRTC assigned).
+ */
gboolean clone;
GnomeOutputInfo ** outputs;