mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 06:04:08 +00:00
Remove no longer needed in flight tracking
This commit is contained in:
parent
a87441b91a
commit
25a74112e8
2 changed files with 0 additions and 12 deletions
11
kitty/dnd.c
11
kitty/dnd.c
|
|
@ -1247,7 +1247,6 @@ drag_free_offer(Window *w) {
|
|||
ds.state = DRAG_SOURCE_NONE;
|
||||
ds.pre_sent_total_sz = 0;
|
||||
ds.images_sent_total_sz = 0;
|
||||
zero_at_ptr(&ds.in_flight_remote_file_data);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -1936,16 +1935,6 @@ void
|
|||
drag_remote_file_data(
|
||||
Window *w, int32_t x, int32_t y, int32_t X, int32_t Y, bool has_more, const uint8_t *payload, size_t payload_sz
|
||||
) {
|
||||
if (ds.in_flight_remote_file_data.active) {
|
||||
x = ds.in_flight_remote_file_data.x; y = ds.in_flight_remote_file_data.y;
|
||||
ds.in_flight_remote_file_data.Y = Y; ds.in_flight_remote_file_data.X = X;
|
||||
}
|
||||
if (!has_more) zero_at_ptr(&ds.in_flight_remote_file_data);
|
||||
else if (!ds.in_flight_remote_file_data.active) {
|
||||
ds.in_flight_remote_file_data.active = true;
|
||||
ds.in_flight_remote_file_data.x = x; ds.in_flight_remote_file_data.y = y;
|
||||
ds.in_flight_remote_file_data.Y = Y; ds.in_flight_remote_file_data.X = X;
|
||||
}
|
||||
size_t item_idx = ds.num_mimes;
|
||||
for (size_t i = 0; i < ds.num_mimes; i++) {
|
||||
if (ds.items[i].requested_remote_files) {
|
||||
|
|
|
|||
|
|
@ -321,7 +321,6 @@ typedef struct Window {
|
|||
struct { double x, y; monotonic_t at; } initial_left_press;
|
||||
char *mimes_buf; size_t num_mimes, bufsz;
|
||||
size_t total_remote_data_size;
|
||||
struct { int32_t x, y, X, Y; bool active; } in_flight_remote_file_data;
|
||||
struct {
|
||||
const char *mime_type; uint8_t *optional_data; size_t data_size, data_capacity; base64_state base64_state;
|
||||
bool data_decode_initialized, is_uri_list, requested_remote_files, data_requested_from_client;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue