mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +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;
|
conn->cursor_enabled = false;
|
||||||
|
drm_fb_clear(&conn->cursor_pending_fb);
|
||||||
if (buffer != NULL) {
|
if (buffer != NULL) {
|
||||||
if ((uint64_t)buffer->width != drm->cursor_width ||
|
if ((uint64_t)buffer->width != drm->cursor_width ||
|
||||||
(uint64_t)buffer->height != drm->cursor_height) {
|
(uint64_t)buffer->height != drm->cursor_height) {
|
||||||
|
|
Loading…
Reference in a new issue