mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app: [Wayland] use correct serial for wl_pointer_set_cursor
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -1169,7 +1169,7 @@ func (w *window) updateCursor() {
|
|||||||
if ptr == nil {
|
if ptr == nil {
|
||||||
return
|
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) {
|
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
|
c = w.cursor.cursor
|
||||||
}
|
}
|
||||||
if c == nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
// Get images[0].
|
// Get images[0].
|
||||||
|
|||||||
Reference in New Issue
Block a user