mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01: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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue