From 73a93c5a6b68f7ba21f9e75f50b1032603a3b39e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 19 Jul 2007 13:26:36 -0700 Subject: [PATCH] Query modes on disabled (but not ignored) outputs. Code that disabled mode detection on disabled outputs would confuse applications by listing said outputs as connected but without any modes. This makes the disabled state in the config file affect only the initial configuration and not subsequent modifications by RandR. --- hw/xfree86/modes/xf86Crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index ecdf62048..1899d7fd3 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -1254,7 +1254,7 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY) */ output->status = (*output->funcs->detect)(output); - if (!xf86OutputEnabled (output)) + if (output->status == XF86OutputStatusDisconnected) { xf86OutputSetEDID (output, NULL); continue;