backend/drm: store drm prop lists as structs

This makes modifying the property lists slightly easier.
This commit is contained in:
Kirill Primak 2024-06-18 17:29:48 +03:00 committed by Simon Zeni
parent 47c578945c
commit 5201836868
5 changed files with 57 additions and 67 deletions

View file

@ -139,7 +139,7 @@ static bool init_plane(struct wlr_drm_backend *drm,
struct wlr_drm_plane *p, const drmModePlane *drm_plane) {
uint32_t id = drm_plane->plane_id;
union wlr_drm_plane_props props = {0};
struct wlr_drm_plane_props props = {0};
if (!get_drm_plane_props(drm->fd, id, &props)) {
return false;
}