From 6ae54dca23064e897b393283887986e5719a747f Mon Sep 17 00:00:00 2001 From: llyyr Date: Mon, 5 Jan 2026 20:53:34 +0530 Subject: [PATCH] xwayland: lock new buffer instead of the old one Fixes: 84d603acc06a --- xwayland/xwayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index 39ca822dc..300b582ea 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -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; }