mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
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:
parent
f5889319f7
commit
1a54d33e77
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user