mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
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>
This commit is contained in:
parent
b3981136a1
commit
7243062f93
3 changed files with 35 additions and 19 deletions
|
|
@ -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"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue