wayland/textinput_v2: copy the data instead of assuming ownership
The life time of the wl_array is limited to the callback, afterwards it's a dangling pointer
(cherry picked from commit 3a8ae60f)
The life time of the wl_array is limited to the callback, afterwards it's a dangling pointer
(cherry picked from commit 3a8ae60f)