This commit is contained in:
Kovid Goyal
2026-04-11 22:05:01 +05:30
parent e53bad9fc2
commit 88a4d90daa

View File

@@ -1569,16 +1569,19 @@ finish_remote_data(Window *w, size_t item_idx) {
} }
static void static void
toplevel_data_for_drag(Window *w, unsigned uri_item_idx, unsigned item_type, bool has_more, const uint8_t *payload, size_t payload_sz) { toplevel_data_for_drag(
(void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz; Window *w, unsigned mime_item_idx, unsigned uri_item_idx, unsigned item_type,
bool has_more, const uint8_t *payload, size_t payload_sz
) {
(void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz; (void)mime_item_idx;
} }
static void static void
subdir_data_for_drag( subdir_data_for_drag(
Window *w, unsigned uri_item_idx, int handle, unsigned entry_num, unsigned item_type, bool has_more, Window *w, unsigned mime_item_idx, unsigned uri_item_idx, int handle, unsigned entry_num, unsigned item_type,
const uint8_t *payload, size_t payload_sz bool has_more, const uint8_t *payload, size_t payload_sz
) { ) {
(void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz; (void)handle; (void)entry_num; (void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz; (void)handle; (void)entry_num; (void)mime_item_idx;
} }
@@ -1599,8 +1602,8 @@ drag_remote_file_data(
} }
if (X < 0) abrt(EINVAL); if (X < 0) abrt(EINVAL);
if (!x && !y && !Y) { finish_remote_data(w, item_idx); return; } if (!x && !y && !Y) { finish_remote_data(w, item_idx); return; }
if (!Y) toplevel_data_for_drag(w, x - 1, X, has_more, payload, payload_sz); if (!Y) toplevel_data_for_drag(w, item_idx, x - 1, X, has_more, payload, payload_sz);
else subdir_data_for_drag(w, x - 1, Y, y - 1, X, has_more, payload, payload_sz); else subdir_data_for_drag(w, item_idx, x - 1, Y, y - 1, X, has_more, payload, payload_sz);
} }
#undef img #undef img
#undef abrt #undef abrt