From 1a54d33e7703d06e63c9b999cddebbd3b32880a7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 28 Feb 2024 13:53:41 +0100 Subject: [PATCH] backend/drm: clear pending cursor FB in drm_connector_set_cursor() When disabling the cursor, don't leave a stale pending FB behind. --- backend/drm/drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 9135889e6..3395bc695 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -986,6 +986,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output, } conn->cursor_enabled = false; + drm_fb_clear(&conn->cursor_pending_fb); if (buffer != NULL) { if ((uint64_t)buffer->width != drm->cursor_width || (uint64_t)buffer->height != drm->cursor_height) {