From 5669df4022e2bbe22ded4eff24f417590040108f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 May 2026 07:54:41 +0530 Subject: [PATCH] Fix drag from window 1 and drop onto non dnd window 2 not working --- kitty/glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 12405d340..f7ffe87ac 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -862,7 +862,7 @@ drop_dest_callback(GLFWwindow *window, GLFWDropEvent *ev) { drop_move_on_child(w, ev->mimes, ev->num_mimes, true); ev->num_mimes = 0; // we wait for the client to request MIMEs } else { - if (ev->from_self) { + if (ev->from_self && !global_state.drag_source.from_window) { PyObject *data = global_state.drag_source.drag_data ? global_state.drag_source.drag_data : global_state.drop_dest.self_drag_data; if (data) { global_state.drag_source.was_dropped = true;