(Ported from radeon commit a8ed62010d5012dfb27773595c446b217f3c00c5)
Signed-off-by: Piotr Redlewski <[email protected]>
---
src/drmmode_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 0f23296..7e0af1a 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -307,7 +307,7 @@ drmmode_crtc_dpms(xf86CrtcPtr crtc, int mode)
if (!crtc->enabled || mode != DPMSModeOn)
drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
0, 0, 0, NULL, 0, NULL);
- else
+ else if (drmmode_crtc->dpms_mode != DPMSModeOn)
crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation,
crtc->x, crtc->y);
}
--
2.4.5
_______________________________________________
xorg-driver-ati mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-ati