[Wayland-bugs] [Bug 100947] The xxxx_set_user_data() API cause client data corrupted in listener callbacks
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri May 5 13:32:57 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=100947
--- Comment #2 from Pekka Paalanen <ppaalanen at gmail.com> ---
Hi,
I suppose this is the common mistake: *_add_listener() sets the same user_data
member as *_set_user_data(). It's not exactly underlined in the docs, but it is
there: https://wayland.freedesktop.org/docs/html/apb.html#Client-classwl__proxy
for wl_proxy_add_listener() and wl_proxy_set_user_data().
The compositor has nothing to do with this. If you call *_set_user_data(), you
will overwrite the value set by *_add_listener().
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170505/2fa85821/attachment.html>
More information about the wayland-bugs
mailing list