Hi, On 26 July 2012 11:18, <zhiwen...@linux.intel.com> wrote: > Add a global Ecore_Wl_Dnd object to handle copy and paste. I think > it is more appropriate to name this struct Ecore_Wl_Selection, which > is responsible for both dnd and cnp. This patch just cover the copy > and paste and not support "clear clipboard", due to wayland has no > way to do that.
Actually it does - the data source you pass to set_selection can be NULL, which will remove the selection offer and effectively clear the clipboard. Similarly, you have to be prepared to receive a NULL data source from the selection event. Cheers, Daniel _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel