diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-22 20:42:34 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-22 20:42:34 +0100 |
commit | ebd0bdbbf8fbcfc2742a3b62909fe7f761a30890 (patch) | |
tree | 48506648560650c2a527c8b7a09e36fb2e76a078 /src/gamma-randr.c | |
parent | Unlist redshift/issues/807: expected behaviour (diff) | |
download | redshift-ng-ebd0bdbbf8fbcfc2742a3b62909fe7f761a30890.tar.gz redshift-ng-ebd0bdbbf8fbcfc2742a3b62909fe7f761a30890.tar.bz2 redshift-ng-ebd0bdbbf8fbcfc2742a3b62909fe7f761a30890.tar.xz |
Misc stuff
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r-- | src/gamma-randr.c | 6 |
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); |