From e02759090ac975b52f1db06b8e27e82e56c5926f Mon Sep 17 00:00:00 2001 From: Lennart Sauerbeck Date: Sun, 11 May 2014 16:05:40 +0200 Subject: XRandR: Allow multiple but not all CRTCs to be redshifted Previously only one CRTC could be set in the configuration file for redshifting when XRandR mechanism was being used. That is fine for a setup with two displays but breaks when three or more displays are in use and one of those shouldn't be redshifted (e.g. two computer displays and one TV connected to the computer). The config value 'crtc' for method xrandr can now be entered as comma separated list of multiple CRTCs. All CRTCs in the list will be redshifted while all those not in the list will not be touched. --- src/gamma-randr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gamma-randr.h') diff --git a/src/gamma-randr.h b/src/gamma-randr.h index 093c41f..1fe7cb3 100644 --- a/src/gamma-randr.h +++ b/src/gamma-randr.h @@ -41,7 +41,8 @@ typedef struct { int preferred_screen; int preserve; int screen_num; - int crtc_num; + int crtc_num_count; + int* crtc_num; unsigned int crtc_count; randr_crtc_state_t *crtcs; } randr_state_t; -- cgit v1.2.3-70-g09d2