aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 619664d6..0fca55d8 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -537,6 +537,10 @@ static bool drm_connector_set_mode(struct wlr_output *output,
conn->desired_mode = mode;
return false;
}
+ if (conn->output.current_mode == mode) {
+ // Nothing to do
+ return true;
+ }
wlr_log(WLR_INFO, "Modesetting '%s' with '%ux%u@%u mHz'",
conn->output.name, mode->width, mode->height, mode->refresh);