[PATCH 1/2] ecore_wayland: Add Copy and Paste support

Daniel Stone daniel at fooishbar.org
Thu Jul 26 03:41:50 PDT 2012


Hi,

On 26 July 2012 11:18,  <zhiwen.wu at 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


More information about the wayland-devel mailing list