summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-12 21:23:16 -0700
committerKeith Packard <keithp@keithp.com>2017-10-12 21:23:16 -0700
commitf553081557572a55fbf343b3f3216cab2378399e (patch)
treeff0a269fb6d5c3bf393377961a4a4e13d1afc34e
parentdb6c90dd6833b6b1de0c367895a62b7c38a28736 (diff)
randr: Don't check leased crtcs when selecting screen size
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--randr/rrscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrscreen.c b/randr/rrscreen.c
index d6c499580..1bd4382dc 100644
--- a/randr/rrscreen.c
+++ b/randr/rrscreen.c
@@ -267,7 +267,7 @@ ProcRRSetScreenSize(ClientPtr client)
RRCrtcPtr crtc = pScrPriv->crtcs[i];
RRModePtr mode = crtc->mode;
- if (mode) {
+ if (!RRCrtcIsLeased(crtc) && mode) {
int source_width = mode->mode.width;
int source_height = mode->mode.height;
Rotation rotation = crtc->rotation;