drm/backend: add support for cursor hotspots

Enables DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT and sets the cursor hotspots on the
cursor plane so virtualized drivers can accelerate mouse movement.

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3776
This commit is contained in:
Ian Forbes 2024-03-19 16:20:32 -05:00
parent 94c31b824c
commit e3bd318547
4 changed files with 20 additions and 1 deletions

View file

@ -65,8 +65,10 @@ union wlr_drm_plane_props {
uint32_t fb_id;
uint32_t crtc_id;
uint32_t fb_damage_clips;
uint32_t hotspot_x;
uint32_t hotspot_y;
};
uint32_t props[14];
uint32_t props[16];
};
bool get_drm_connector_props(int fd, uint32_t id,