Product SiteDocumentation Site

A.8. wl_data_device

A.8.1. Requests provided by wl_data_device

A.8.1.1. wl_data_device::start_drag - 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.
wl_data_device::start_drag arguments
source
Type: object
origin
Type: object
icon
Type: object
time
Type: uint

A.8.1.2. wl_data_device::set_selection

wl_data_device::set_selection arguments
source
Type: object
time
Type: uint