From dfea0ff31dbf74f4d310df8eb55a57a51878e1fc Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 6 Apr 2021 17:14:17 +0200 Subject: backend/drm: remove wlr_drm_crtc_state.active Replace it with drm_connector_state_active, which figures out whether the connector is active depending on the wlr_output_state to be applied. --- include/backend/drm/drm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/backend/drm/drm.h') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index b6446653..64961ab4 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -42,7 +42,6 @@ struct wlr_drm_plane { }; struct wlr_drm_crtc_state { - bool active; struct wlr_drm_mode *mode; }; @@ -160,6 +159,8 @@ size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm, struct wlr_drm_fb *plane_get_next_fb(struct wlr_drm_plane *plane); bool drm_connector_state_is_modeset(const struct wlr_output_state *state); +bool drm_connector_state_active(struct wlr_drm_connector *conn, + const struct wlr_output_state *state); #define wlr_drm_conn_log(conn, verb, fmt, ...) \ wlr_log(verb, "connector %s: " fmt, conn->name, ##__VA_ARGS__) -- cgit v1.2.3