diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 17:14:17 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-04-29 19:51:57 +0200 |
commit | dfea0ff31dbf74f4d310df8eb55a57a51878e1fc (patch) | |
tree | ce503b3393a17db49f8c1deed0bcbbc40ff8cc31 /include/backend/drm | |
parent | 485ecc11a6d31c1a2ba3724dd61ce34f77e7436f (diff) |
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.
Diffstat (limited to 'include/backend/drm')
-rw-r--r-- | include/backend/drm/drm.h | 3 |
1 files changed, 2 insertions, 1 deletions
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__) |