aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gamma-x-randr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gamma-x-randr.c b/src/gamma-x-randr.c
index c5f60dd..0d831c9 100644
--- a/src/gamma-x-randr.c
+++ b/src/gamma-x-randr.c
@@ -488,6 +488,10 @@ int libgamma_x_randr_get_crtc_information(libgamma_crtc_information_t* restrict
if ((fields & (CRTC_INFO_WIDTH_MM | CRTC_INFO_HEIGHT_MM | CRTC_INFO_SUBPIXEL_ORDER)))
fields |= CRTC_INFO_ACTIVE;
+ /* Jump if the output information is not required. */
+ if ((fields & (CRTC_INFO_ACTIVE | CRTC_INFO_CONNECTOR_NAME)) == 0)
+ goto cont;
+
/* FIXME output */
e |= this->connector_name_error = -1; /* FIXME */