mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/drm: track cursor FB in wlr_drm_connector_state
Use the same logic for cursor FBs as we currently use for primary FBs. This also fixes the same bug as [1] but in a different, more robust way. The new logic integrates better with atomic and will be required anyways in the future when set_cursor will be superseded by a better API. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4577
This commit is contained in:
parent
f6659414ba
commit
16b42bf65b
5 changed files with 18 additions and 19 deletions
|
|
@ -129,6 +129,7 @@ struct wlr_drm_connector_state {
|
|||
bool active;
|
||||
drmModeModeInfo mode;
|
||||
struct wlr_drm_fb *primary_fb;
|
||||
struct wlr_drm_fb *cursor_fb;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -196,7 +197,6 @@ size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm,
|
|||
void drm_lease_destroy(struct wlr_drm_lease *lease);
|
||||
void drm_page_flip_destroy(struct wlr_drm_page_flip *page_flip);
|
||||
|
||||
struct wlr_drm_fb *get_next_cursor_fb(struct wlr_drm_connector *conn);
|
||||
struct wlr_drm_layer *get_drm_layer(struct wlr_drm_backend *drm,
|
||||
struct wlr_output_layer *layer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue