δΊ 2012/7/26 18:41, Daniel Stone ει:
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.
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
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel