Fix drag from window 1 and drop onto non dnd window 2 not working

This commit is contained in:
Kovid Goyal
2026-05-17 07:54:41 +05:30
parent 75b99a3cbf
commit 5669df4022
+1 -1
View File
@@ -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;