1
diff --git a/randr/rrscreen.c b/randr/rrscreen.c
2
index 1bc1a9e..da6d48d 100644
5
@@ -910,12 +910,6 @@ ProcRRSetScreenConfig (ClientPtr client)
7
width = mode->mode.width;
8
height = mode->mode.height;
9
- if (rotation & (RR_Rotate_90|RR_Rotate_270))
11
- width = mode->mode.height;
12
- height = mode->mode.width;
15
if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) {
16
client->errorValue = width;
18
@@ -927,6 +921,12 @@ ProcRRSetScreenConfig (ClientPtr client)
22
+ if (rotation & (RR_Rotate_90|RR_Rotate_270))
24
+ width = mode->mode.height;
25
+ height = mode->mode.width;
28
if (width != pScreen->width || height != pScreen->height)