diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-04-20 17:34:55 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-04-20 17:34:55 +0200 |
commit | 4dcda0b48d62944c841cd9540f4ad4c7ac8dee47 (patch) | |
tree | 8cb4f996a40fbb994f0ac55a3b103aa000ec0178 | |
parent | 36d01989cd842588f12fdae5b2cba5fdcf9c91dd (diff) |
Update RandR CRTC state if set_mode_major fails in set_desired_modes
Without this, RandR would report the CRTC and its outputs as enabled,
even though they were actually off due to the failure.
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index dcfc993..d752e71 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -2729,6 +2729,8 @@ Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode, } else { xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Failed to set mode on CRTC %d\n", c); + RRCrtcSet(crtc->randr_crtc, NULL, crtc->x, crtc->y, + crtc->rotation, 0, NULL); } } else { crtc->mode = crtc->desiredMode; |