From a3117d382376b664b1e4a91e68a61d3cd5fc7ba4 Mon Sep 17 00:00:00 2001 From: Dave Akers Date: Wed, 2 Apr 2025 19:05:14 +0000 Subject: [PATCH] app: [Wayland] use correct serial for wl_pointer_set_cursor Signed-off-by: Elias Naur --- app/os_wayland.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/os_wayland.go b/app/os_wayland.go index 24d1d874..4d589a7f 100644 --- a/app/os_wayland.go +++ b/app/os_wayland.go @@ -1169,7 +1169,7 @@ func (w *window) updateCursor() { if ptr == nil { return } - w.setCursor(ptr, w.serial) + w.setCursor(ptr, w.seat.serial) } func (w *window) setCursor(pointer *C.struct_wl_pointer, serial C.uint32_t) { @@ -1178,7 +1178,7 @@ func (w *window) setCursor(pointer *C.struct_wl_pointer, serial C.uint32_t) { c = w.cursor.cursor } if c == nil { - C.wl_pointer_set_cursor(pointer, w.serial, nil, 0, 0) + C.wl_pointer_set_cursor(pointer, serial, nil, 0, 0) return } // Get images[0].