aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index c577bffc..a3daf23f 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -582,9 +582,13 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
}
if (pending.modeset) {
- wlr_drm_conn_log(conn, WLR_INFO, "Modesetting with %dx%d @ %.3f Hz",
- pending.mode.hdisplay, pending.mode.vdisplay,
- (float)calculate_refresh_rate(&pending.mode) / 1000);
+ if (pending.active) {
+ wlr_drm_conn_log(conn, WLR_INFO, "Modesetting with %dx%d @ %.3f Hz",
+ pending.mode.hdisplay, pending.mode.vdisplay,
+ (float)calculate_refresh_rate(&pending.mode) / 1000);
+ } else {
+ wlr_drm_conn_log(conn, WLR_INFO, "Turning off");
+ }
}
if (!drm_crtc_commit(conn, &pending, flags, false)) {