BR: DragAndDropContainer::performExternalDragDropOfFiles repeats the drag operation for every following click of the mouse

DragAndDropContainer::performExternalDragDropOfFiles repeats the drag operation for every following click of the mouse. Happens on Linux, but not Windows or macOS.

Code to reproduce:

Drag and drop from anywhere into the same component. You should see the filename of the file that was dropped.

After the drop, clicking should do nothing. On Linux, clicking in the Component repeats the drop even though another drag was not started. Works correctly on macOS and Windows.

Thanks for reporting, looks like this has been broken for a while since the X11 refactoring in JUCE 6. I’ve pushed a fix to develop here:

2 Likes