Enum smithay::wayland::data_device::DataDeviceEvent
source · pub enum DataDeviceEvent {
NewSelection(Option<Resource<WlDataSource>>),
DnDStarted {
source: Option<Resource<WlDataSource>>,
icon: Option<Resource<WlSurface>>,
},
DnDDropped,
SendSelection {
mime_type: String,
fd: RawFd,
},
}
Expand description
Events that are generated by interactions of the clients with the data device
Variants§
NewSelection(Option<Resource<WlDataSource>>)
A client has set the selection
DnDStarted
Fields
§
source: Option<Resource<WlDataSource>>
The data source provided by the client
If it is None
, this means the DnD is restricted to surfaces of the
same client and the client will manage data transfert by itself.
A client started a drag’n’drop as response to a user pointer action
DnDDropped
The drag’n’drop action was finished by the user releasing the buttons
At this point, any pointer icon should be removed.
Note that this event will only be genrated for client-initiated drag’n’drop session.
SendSelection
A client requested to read the server-set selection