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;