aboutsummaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2012-02-15 17:02:52 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-02-16 16:11:44 -0500
commit7243062f9346449b4f8657d0d472dc3ffe5b33dc (patch)
tree6eed853722a30782d2523f1234ec266bef0792df /protocol
parentAdd fullscreen protocol (diff)
downloadwayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.tar
wayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.tar.gz
wayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.tar.bz2
wayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.tar.lz
wayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.tar.xz
wayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.tar.zst
wayland-7243062f9346449b4f8657d0d472dc3ffe5b33dc.zip
data_device: get rid of attach request
In the effort to make everything a regular surface, remove data_device.attach request. To maintan the functionality, add an icon surface parameter to data_device.start_drag. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Diffstat (limited to 'protocol')
-rw-r--r--protocol/wayland.xml22
1 files changed, 14 insertions, 8 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index a33c1d3..45e860a 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -277,18 +277,24 @@
<interface name="wl_data_device" version="1">
<request name="start_drag">
+ <description summary="start drag and drop operation">
+ This request asks the compositor to start a drag and drop
+ operation on behalf of the client. The source argument is the
+ data source that provides the data for the eventual data
+ transfer. The origin surface is the surface where the drag
+ originates and the client must have an active implicit grab
+ that matches the timestamp. The icon surface is an optional
+ (can be nil) surface that provides an icon to be moved around
+ with the cursor. Initially, the top-left corner of the icon
+ surface is placed at the cursor hotspot, but subsequent
+ surface.attach request can move the relative position.
+ </description>
<arg name="source" type="object" interface="wl_data_source"/>
- <arg name="surface" type="object" interface="wl_surface"/>
+ <arg name="origin" type="object" interface="wl_surface"/>
+ <arg name="icon" type="object" interface="wl_surface"/>
<arg name="time" type="uint"/>
</request>
- <request name="attach">
- <arg name="time" type="uint"/>
- <arg name="buffer" type="object" interface="wl_buffer"/>
- <arg name="x" type="int"/>
- <arg name="y" type="int"/>
- </request>
-
<request name="set_selection">
<arg name="source" type="object" interface="wl_data_source"/>
<arg name="time" type="uint"/>