Perform the actual drop after releasing the button

This commit is contained in:
Robbert van der Helm
2021-07-11 15:13:32 +02:00
parent 8fc1097f84
commit 0e0b120eda
2 changed files with 147 additions and 52 deletions
+14
View File
@@ -198,6 +198,20 @@ class WineXdndProxy {
uint32_t data3,
uint32_t data4) const noexcept;
/**
* Handle any incoming `SelectionRequest` events.
*
* When the window we're dragging over wants to inspect the dragged content,
* it will call `ConvertSelection()` which sends us a `SelelectionRequest`.
* We should write the data in the requested format the property the
* specified on their window, and then send them a `SelectionNotify` to
* indicate that we're done. Since we only provide a single unique format,
* we have already converted the file list to `text/uri-list` format.
*
* This does included the necessary flushes.
*/
void handle_convert_selection(const xcb_selection_request_event_t& event);
/**
* We need a dedicated X11 connection for our proxy because we can have
* multiple open editors in a single process (e.g. when using VST3 plugins