mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app/internal/window: [Wayland] initialize touchFoci map
Fixes gio#145 (I hope) Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -584,10 +584,11 @@ func gio_onRegistryGlobal(data unsafe.Pointer, reg *C.struct_wl_registry, name C
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
d.seat = &wlSeat{
|
d.seat = &wlSeat{
|
||||||
disp: d,
|
disp: d,
|
||||||
name: name,
|
name: name,
|
||||||
seat: s,
|
seat: s,
|
||||||
offers: make(map[*C.struct_wl_data_offer][]string),
|
offers: make(map[*C.struct_wl_data_offer][]string),
|
||||||
|
touchFoci: make(map[C.int32_t]*window),
|
||||||
}
|
}
|
||||||
callbackStore(unsafe.Pointer(s), d.seat)
|
callbackStore(unsafe.Pointer(s), d.seat)
|
||||||
C.wl_seat_add_listener(s, &C.gio_seat_listener, unsafe.Pointer(s))
|
C.wl_seat_add_listener(s, &C.gio_seat_listener, unsafe.Pointer(s))
|
||||||
|
|||||||
Reference in New Issue
Block a user