aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-randr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r--src/gamma-randr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gamma-randr.c b/src/gamma-randr.c
index 10ea277..9438d17 100644
--- a/src/gamma-randr.c
+++ b/src/gamma-randr.c
@@ -287,6 +287,12 @@ randr_set_option(struct gamma_state *state, const char *key, const char *value)
/* Check how many crtcs are configured */
const char *local_value = value;
+ if (!*local_value || !strcasecmp(local_value, "all")) {
+ state->crtc_num_count = 0;
+ free(state->crtc_num);
+ state->crtc_num = NULL;
+ return 0;
+ }
for (;;) {
errno = 0;
parsed = strtol(local_value, &tail, 0);