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

**URL:** <https://forum.juce.com/t/br-draganddropcontainer-performexternaldragdropoffiles-repeats-the-drag-operation-for-every-following-click-of-the-mouse/48569>\
**Category:** Linux\
**Created:** [November 2, 2021, 7:23pm UTC](https://forum.juce.com/t/br-draganddropcontainer-performexternaldragdropoffiles-repeats-the-drag-operation-for-every-following-click-of-the-mouse/48569 "2021-11-02T19:23:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [November 2, 2021, 7:23pm UTC](https://forum.juce.com/t/br-draganddropcontainer-performexternaldragdropoffiles-repeats-the-drag-operation-for-every-following-click-of-the-mouse/48569/1 "2021-11-02T19:23:49Z")

</div>

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

Code to reproduce:

> <https://github.com/FigBug/juce_bugs/blob/master/LinuxDragDrop/Source/MainComponent.h>

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.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [November 3, 2021, 4:14pm UTC](https://forum.juce.com/t/br-draganddropcontainer-performexternaldragdropoffiles-repeats-the-drag-operation-for-every-following-click-of-the-mouse/48569/2 "2021-11-03T16:14:32Z")

</div>

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:

> <https://github.com/juce-framework/JUCE/commit/fdd9eb8eeb016e25f8f6be093c561c4523f001c6>
