From 9e8bd7207b00a1ea57ada71a0189b12c4a3dcb3d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 8 May 2026 16:54:20 +0530 Subject: [PATCH] Track remote client on drag source items --- glfw/glfw3.h | 1 + kitty/glfw-wrapper.h | 1 + kitty/glfw.c | 1 + 3 files changed, 3 insertions(+) diff --git a/glfw/glfw3.h b/glfw/glfw3.h index 724f58ce1..69935488c 100644 --- a/glfw/glfw3.h +++ b/glfw/glfw3.h @@ -1827,6 +1827,7 @@ typedef struct GLFWDragSourceItem { // Can be on null to provide data when the drag is started should be used only when the data is relatively small const char *optional_data; size_t data_size; + bool is_remote_client; } GLFWDragSourceItem; typedef struct GLFWDragEvent { diff --git a/kitty/glfw-wrapper.h b/kitty/glfw-wrapper.h index 7471002dc..6198a6714 100644 --- a/kitty/glfw-wrapper.h +++ b/kitty/glfw-wrapper.h @@ -1555,6 +1555,7 @@ typedef struct GLFWDragSourceItem { // Can be on null to provide data when the drag is started should be used only when the data is relatively small const char *optional_data; size_t data_size; + bool is_remote_client; } GLFWDragSourceItem; typedef struct GLFWDragEvent { diff --git a/kitty/glfw.c b/kitty/glfw.c index 5eee172d1..612211402 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -3079,6 +3079,7 @@ start_window_drag(Window *w, bool in_test_mode) { items[i].mime_type = w->drag_source.items[i].mime_type; items[i].optional_data = (char*)w->drag_source.items[i].optional_data; items[i].data_size = w->drag_source.items[i].data_size; + items[i].is_remote_client = w->drag_source.is_remote_client; } size_t num_images = 0; for (size_t i = 0; i < arraysz(w->drag_source.images); i++) if (w->drag_source.images[i].data) num_images++;