From 307b23626d9fccc4ab9f72b23940f26c54505b0e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 20 Feb 2019 14:03:55 +0100 Subject: protocol: disallow re-using wl_data_source As pointed out in [1], re-using a wl_data_source for multiple start_drag or set_selection requests has bad consequences, because this object has events that allo tracking the state of a selection/drag-and-drop operation. Tracking two operations at the same time isn't possible with this interface. [1]: https://lists.freedesktop.org/archives/wayland-devel/2019-January/039936.html Signed-off-by: Simon Ser Signed-off-by: Daniel Stone --- protocol/wayland.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 10e039d..17a1769 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -847,6 +847,7 @@ + @@ -876,6 +877,10 @@ The input region is ignored for wl_surfaces with the role of a drag-and-drop icon. + + The given source may not be used in any further set_selection or + start_drag requests. Attempting to reuse a previously-used source + may send a used_source error. @@ -889,6 +894,10 @@ to the data from the source on behalf of the client. To unset the selection, set the source to NULL. + + The given source may not be used in any further set_selection or + start_drag requests. Attempting to reuse a previously-used source + may send a used_source error. -- cgit v1.2.1