Allow non UI/client drags from programs that disallow move on drag

This commit is contained in:
Kovid Goyal 2026-05-26 21:56:35 +05:30
parent 2096948cbc
commit 173535736a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -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;