δΊ 2012/7/26 18:41, Daniel Stone ει: > Hi, > > On 26 July 2012 11:18,<[email protected]> 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. I don't think so. The weston has a clipboard object which will cache the contents of selection and create a data source internally. If set_selection set a NULL data source, the clipboard will call wl_seat_set_selection() to take over the data source ownership and notify the client with selection and offer. See clipboard.c::clipboard_set_selection().
But, I should say "weston has no way to do that" instead of wayland. > > Similarly, you have to be prepared to receive a NULL data source from > the selection event. I think you mean NULL data offer. > > Cheers, > Daniel > _______________________________________________ > wayland-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/wayland-devel > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
