From 173535736adf58843555d2d3bb4f3f2e9a310608 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 May 2026 21:56:35 +0530 Subject: [PATCH] Allow non UI/client drags from programs that disallow move on drag --- docs/changelog.rst | 2 ++ kitty/glfw.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8c1a39770..77a71dd6d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -184,6 +184,8 @@ Detailed list of changes - Fix :opt:`auto_reload_config` not working when :file:`kitty.conf` is a symlink (:iss:`10066`) +- Fix a regression in the previous release that broke dragging of URLs to the shell prompt from programs that dont support MOVE drag operations + 0.47.0 [2026-05-19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/glfw.c b/kitty/glfw.c index f7ffe87ac..c32a18d73 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -833,7 +833,7 @@ drop_dest_callback(GLFWwindow *window, GLFWDropEvent *ev) { ev->operation.allowed = GLFW_DRAG_OPERATION_MOVE; } else { ev->operation.preferred = GLFW_DRAG_OPERATION_MOVE; - ev->operation.allowed = GLFW_DRAG_OPERATION_MOVE; + ev->operation.allowed = GLFW_DRAG_OPERATION_MOVE | GLFW_DRAG_OPERATION_COPY; } } break;