Skip to content

Commit bf67704

Browse files
committed
Cleanup previous PR
1 parent 66e41b8 commit bf67704

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kitty/dnd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
static const size_t MIME_LIST_SIZE_CAP = 1024 * 1024;
2222
static const size_t PRESENT_DATA_CAP = 64 * 1024 * 1024;
23-
#define DROP_REQUEST_QUEUE_CAP 128
2423

2524
// In test mode, this callable is invoked instead of schedule_write_to_child_if_possible.
2625
// It receives (window_id: int, data: bytes) and its return value is ignored.
@@ -1005,7 +1004,7 @@ drop_enqueue_request(Window *w, uint32_t request_id, char type, const char *payl
10051004
return;
10061005
}
10071006

1008-
if (w->drop.num_data_requests >= DROP_REQUEST_QUEUE_CAP) {
1007+
if (w->drop.num_data_requests >= arraysz(w->drop.data_requests)) {
10091008
/* Queue full: deny with EMFILE and end the drop */
10101009
uint32_t saved = w->drop.current_request_id;
10111010
w->drop.current_request_id = request_id;

0 commit comments

Comments
 (0)