backend/drm: introduce drm_connector_commit_state

Backend-initiated mode changes can use this function instead of
going through drm_connector_set_mode. drm_connector_set_mode becomes
a mere drm_connector_commit_state helper.
This commit is contained in:
Simon Ser 2021-04-06 17:58:10 +02:00 committed by Kenny Levinsen
parent e543e26206
commit a1e8a639b3
3 changed files with 27 additions and 21 deletions

View file

@ -128,7 +128,7 @@ static void handle_session_active(struct wl_listener *listener, void *data) {
.mode_type = WLR_OUTPUT_STATE_MODE_FIXED,
.mode = mode,
};
drm_connector_set_mode(conn, &state);
drm_connector_commit_state(conn, &state);
}
} else {
wlr_log(WLR_INFO, "DRM fd paused");