rendered paste bodydiff --git a/randr/rrscreen.c b/randr/rrscreen.c
index 590a388..1cfed62 100644
--- a/randr/rrscreen.c
+++ b/randr/rrscreen.c
@@ -934,6 +934,12 @@ ProcRRSetScreenConfig (ClientPtr client)
goto sendReply;
}
}
+
+ if (!RRCrtcSet (crtc, mode, 0, 0, stuff->rotation, 1, &output))
+ rep.status = RRSetConfigFailed;
+ else
+ rep.status = RRSetConfigSuccess;
+
if (!RRScreenSizeSet (pScreen, width, height,
pScreen->mmWidth, pScreen->mmHeight))
{
@@ -943,11 +949,6 @@ ProcRRSetScreenConfig (ClientPtr client)
}
}
- if (!RRCrtcSet (crtc, mode, 0, 0, stuff->rotation, 1, &output))
- rep.status = RRSetConfigFailed;
- else
- rep.status = RRSetConfigSuccess;
-
/*
* XXX Configure other crtcs to mirror as much as possible
*/