Make using a data source twice a protocol error

This commit is contained in:
Ivan Molodetskikh 2019-02-01 14:06:08 +03:00
parent 06b41b7ff4
commit 151664b67a
No known key found for this signature in database
GPG key ID: 02CE38DA47E9D691

View file

@ -84,7 +84,8 @@
the source on behalf of the client.
The given source may not be used in any further set_selection or
set_primary_selection requests.
set_primary_selection requests. Attempting to use a previously used
source is a protocol error.
To unset the selection, set the source to NULL.
</description>
@ -166,7 +167,8 @@
data from the source on behalf of the client.
The given source may not be used in any further set_selection or
set_primary_selection requests.
set_primary_selection requests. Attempting to use a previously used
source is a protocol error.
To unset the primary selection, set the source to NULL.
@ -176,6 +178,11 @@
<arg name="source" type="object" interface="zwlr_data_control_source_v1"
allow-null="true"/>
</request>
<enum name="error" since="2">
<entry name="used_source" value="1"
summary="source given to set_selection or set_primary_selection was already used before"/>
</enum>
</interface>
<interface name="zwlr_data_control_source_v1" version="1">