summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-07-02 14:34:48 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-07-02 14:34:48 -0400
commit8a023688c07fe2d377c4bc9631ce2fe7a9afee60 (patch)
tree782896abbe5f1159a2815c48c0d34d2e9afe467e /protocol
parent11db60fe729539315c96745c50ae3160dc16001c (diff)
protocol: Add a couple of missing allow-null annotations
wl_data_device.set_selection() allows NULL to withdraw the previously set selection and wl_surface.attach() allows a NULL buffer to hide the surface.
Diffstat (limited to 'protocol')
-rw-r--r--protocol/wayland.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 06b3d0f..54fb9e0 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -342,7 +342,7 @@
</request>
<request name="set_selection">
- <arg name="source" type="object" interface="wl_data_source"/>
+ <arg name="source" type="object" interface="wl_data_source" allow-null="true"/>
<arg name="serial" type="uint"/>
</request>
@@ -635,7 +635,7 @@
corner, relative to the old buffers upper left corner.
</description>
- <arg name="buffer" type="object" interface="wl_buffer"/>
+ <arg name="buffer" type="object" interface="wl_buffer" allow-null="true"/>
<arg name="x" type="int"/>
<arg name="y" type="int"/>
</request>