Skip to content

Commit 88a4d90

Browse files
committed
...
1 parent e53bad9 commit 88a4d90

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

kitty/dnd.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,16 +1569,19 @@ finish_remote_data(Window *w, size_t item_idx) {
15691569
}
15701570

15711571
static void
1572-
toplevel_data_for_drag(Window *w, unsigned uri_item_idx, unsigned item_type, bool has_more, const uint8_t *payload, size_t payload_sz) {
1573-
(void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz;
1572+
toplevel_data_for_drag(
1573+
Window *w, unsigned mime_item_idx, unsigned uri_item_idx, unsigned item_type,
1574+
bool has_more, const uint8_t *payload, size_t payload_sz
1575+
) {
1576+
(void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz; (void)mime_item_idx;
15741577
}
15751578

15761579
static void
15771580
subdir_data_for_drag(
1578-
Window *w, unsigned uri_item_idx, int handle, unsigned entry_num, unsigned item_type, bool has_more,
1579-
const uint8_t *payload, size_t payload_sz
1581+
Window *w, unsigned mime_item_idx, unsigned uri_item_idx, int handle, unsigned entry_num, unsigned item_type,
1582+
bool has_more, const uint8_t *payload, size_t payload_sz
15801583
) {
1581-
(void)w; (void)uri_item_idx; (void)item_type; (void)has_more; (void)payload; (void)payload_sz; (void)handle; (void)entry_num;
1584+
(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;
15821585
}
15831586

15841587

@@ -1599,8 +1602,8 @@ drag_remote_file_data(
15991602
}
16001603
if (X < 0) abrt(EINVAL);
16011604
if (!x && !y && !Y) { finish_remote_data(w, item_idx); return; }
1602-
if (!Y) toplevel_data_for_drag(w, x - 1, X, has_more, payload, payload_sz);
1603-
else subdir_data_for_drag(w, x - 1, Y, y - 1, X, has_more, payload, payload_sz);
1605+
if (!Y) toplevel_data_for_drag(w, item_idx, x - 1, X, has_more, payload, payload_sz);
1606+
else subdir_data_for_drag(w, item_idx, x - 1, Y, y - 1, X, has_more, payload, payload_sz);
16041607
}
16051608
#undef img
16061609
#undef abrt

0 commit comments

Comments
 (0)