[xrandr 1/2] Mark disabling an output as a change in its CRTC

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 18 00:27:48 PDT 2015


When an output is disabled via the cmdline, we can use that information
to prevent assigning the current CRTC to the output and free it up for
reuse by other outputs in the first pass of picking CRTC.

Reported-and-tested-by: Nathan Schulte <nmschulte at gmail.com>
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 xrandr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xrandr.c b/xrandr.c
index fbfd93e..c0feac3 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -3029,7 +3029,7 @@ main (int argc, char **argv)
 	    if (!config_output) argerr ("%s must be used after --output\n", argv[i]);
 	    set_name_xid (&config_output->mode, None);
 	    set_name_xid (&config_output->crtc, None);
-	    config_output->changes |= changes_mode;
+	    config_output->changes |= changes_mode | changes_crtc;
 	    continue;
 	}
 	if (!strcmp ("--fb", argv[i])) {
-- 
2.1.4



More information about the xorg-devel mailing list