backend/drm: clear pending cursor FB in drm_connector_set_cursor()

When disabling the cursor, don't leave a stale pending FB behind.
This commit is contained in:
Simon Ser 2024-02-28 13:53:41 +01:00
parent f5889319f7
commit 1a54d33e77

View file

@ -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) {