Merge branch 'master_rotate' into 'master'

backend/drm: Ensure plane rotation is always reset

See merge request wlroots/wlroots!4508
This commit is contained in:
Dave Stevenson 2024-06-24 23:02:14 +00:00
commit 9b24b73336

View file

@ -351,6 +351,8 @@ static void set_plane_props(struct atomic *atom, struct wlr_drm_backend *drm,
atomic_add(atom, id, props->crtc_id, crtc_id);
atomic_add(atom, id, props->crtc_x, (uint64_t)x);
atomic_add(atom, id, props->crtc_y, (uint64_t)y);
if (plane->props.rotation)
atomic_add(atom, id, props->rotation, DRM_MODE_ROTATE_0);
}
static bool supports_cursor_hotspots(const struct wlr_drm_plane* plane) {