aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/atomic.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-06 17:34:05 +0100
committerSimon Ser <contact@emersion.fr>2022-12-07 17:44:51 +0100
commitae61cd6bfb97a2ab5d03b30d90dd81ee6c82d352 (patch)
treed334ebe919a2bafc5d72d61693c1f964bf0693c8 /backend/drm/atomic.c
parent602f0d3be5789db723870f92d3492f2ff8dbac71 (diff)
backend/drm: use separate field to store pending cursor FB
We'll move the pending primary FB into the connector state in the next commit, dropping wlr_drm_plane.pending_fb in the process. Introduce a dedicated field for the cursor, which has to be managed in a special way due to our set_cursor API.
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r--backend/drm/atomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index affb0223..1ca1467c 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -302,7 +302,7 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
}
if (crtc->cursor) {
if (drm_connector_is_cursor_visible(conn)) {
- set_plane_props(&atom, drm, crtc->cursor, plane_get_next_fb(crtc->cursor),
+ set_plane_props(&atom, drm, crtc->cursor, get_next_cursor_fb(conn),
crtc->id, conn->cursor_x, conn->cursor_y);
} else {
plane_disable(&atom, crtc->cursor);