xwayland: lock new buffer instead of the old one

Fixes: 84d603acc0
This commit is contained in:
llyyr 2026-01-05 20:53:34 +05:30
parent 84d603acc0
commit 6ae54dca23

View file

@ -179,7 +179,7 @@ void wlr_xwayland_set_cursor(struct wlr_xwayland *xwayland,
}
wlr_buffer_unlock(xwayland->cursor_buffer);
xwayland->cursor_buffer = wlr_buffer_lock(xwayland->cursor_buffer);
xwayland->cursor_buffer = wlr_buffer_lock(buffer);
xwayland->cursor_hotspot.x = hotspot_x;
xwayland->cursor_hotspot.y = hotspot_y;
}