mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
The uber-fussy sway does not like calling wl_data_offer_finish on a version 1 data manager
This commit is contained in:
parent
aa11ddf32c
commit
eb12511646
1 changed files with 3 additions and 1 deletions
4
glfw/wl_window.c
vendored
4
glfw/wl_window.c
vendored
|
|
@ -1766,7 +1766,9 @@ static void drop(void *data UNUSED, struct wl_data_device *wl_data_device UNUSED
|
|||
if (_glfw.wl.dataOffers[i].offer_type == DRAG_AND_DROP) {
|
||||
char *uri_list = read_data_offer(_glfw.wl.dataOffers[i].id, URI_LIST_MIME);
|
||||
if (uri_list) {
|
||||
wl_data_offer_finish(_glfw.wl.dataOffers[i].id);
|
||||
// We dont do finish as this requires version 3 for wl_data_device_manager
|
||||
// which then requires more work with calling set_actions for drag and drop to function
|
||||
// wl_data_offer_finish(_glfw.wl.dataOffers[i].id);
|
||||
int count;
|
||||
char** paths = parseUriList(uri_list, &count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue