<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - The xxxx_set_user_data() API cause client data corrupted in listener callbacks"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100947#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - The xxxx_set_user_data() API cause client data corrupted in listener callbacks"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100947">bug 100947</a>
              from <span class="vcard"><a class="email" href="mailto:ppaalanen@gmail.com" title="Pekka Paalanen <ppaalanen@gmail.com>"> <span class="fn">Pekka Paalanen</span></a>
</span></b>
        <pre>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: <a href="https://wayland.freedesktop.org/docs/html/apb.html#Client-classwl__proxy">https://wayland.freedesktop.org/docs/html/apb.html#Client-classwl__proxy</a>
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().</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>