<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>in reaction to<br><a href="http://lists.freedesktop.org/archives/wayland-devel/2013-November/012018.html">http://lists.freedesktop.org/archives/wayland-devel/2013-November/012018.html</a><br>
</div>I have got an idea and I like to share it with you and possibly get a feedback.<br><br></div><div>What I was thinking about is:<br></div>Add into wl_object another variable for listener (implementation) that would be set<br>
</div>when proxy is created (or set to NULL when not needed). In this new listener would be actions that should be done in display (client's display) before actual dispatching the event. Example with the global deletion:<br>
<br></div>client recieves global_delete event and in dispatching phase there would these steps:<br></div>preaction_global_delete(..)                       // this is new<br></div>{   mark proxy id as invalid  or whatever }   //   ..............<br>
</div>user_global_delete(..)                              // this is what is now<br>{  anything user wants ... }                       //    .............<br><br></div>So, basically, the result would be triggering an action defined by display (but on client side) on particular event coming.<br>
<br></div>Is it any way useful (I can imagine it work for example for the global deletion) or is it just silly idea?<br><br></div>Regards,<br>Marek Ch<br></div>