From a0d1b331d5727b6f6786c05daf22a14cf0e1a57c Mon Sep 17 00:00:00 2001 From: Gustavo Pichorim Boiko Date: Mon, 23 Jul 2007 13:56:31 -0300 Subject: [PATCH] Set the crtc before the output change is notified Set the new randr crtc of the output before the output change notification is delivered to the clients. --- hw/xfree86/modes/xf86RandR12.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c index 6c3bf8d..b401a9a 100644 --- a/hw/xfree86/modes/xf86RandR12.c +++ b/hw/xfree86/modes/xf86RandR12.c @@ -748,6 +748,10 @@ xf86RandR12CrtcSet (ScreenPtr pScreen, { changed = TRUE; output->crtc = new_crtc; + if (new_crtc) + RROutputSetCrtc(output->randr_output, new_crtc->randr_crtc); + else + RROutputSetCrtc(output->randr_output, NULL); } } for (ro = 0; ro < num_randr_outputs; ro++) -- 1.5.2.2