From a1e8a639b3626b474d49e7694bd0c9e3945adf0c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 6 Apr 2021 17:58:10 +0200 Subject: 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. --- include/backend/drm/drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/backend') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 6201a328..13ccd672 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -143,7 +143,7 @@ void restore_drm_outputs(struct wlr_drm_backend *drm); void scan_drm_connectors(struct wlr_drm_backend *state); int handle_drm_event(int fd, uint32_t mask, void *data); void destroy_drm_connector(struct wlr_drm_connector *conn); -bool drm_connector_set_mode(struct wlr_drm_connector *conn, +bool drm_connector_commit_state(struct wlr_drm_connector *conn, const struct wlr_output_state *state); bool drm_connector_is_cursor_visible(struct wlr_drm_connector *conn); bool drm_connector_supports_vrr(struct wlr_drm_connector *conn); -- cgit v1.2.3