1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00
JUCE/modules/juce_gui_basics
reuk 146c8573ca
X11: Fix drag-n-drop bug in the XWindowSystem class
This resolves a regression which was introduced in
74ca3b44c4.

Prior to that commit, drag and drop on Linux/X11 worked as expected.
DragAndDropContainer::performExternalDragDropOfFiles allowed dropping
files onto other applications.

After the faulty commit, this function may cause the window manager to
enter a bad state in which the drag operation never finishes, making it
impossible to switch between windows or close windows.

I think the issue happens because the DnD source may receive (spurious?)
XdndLeave messages during the drag, which cause the peer's entry in the
dragAndDropStateMap to be removed. Before the faulty commit, each peer
had its own drag and drop state object, which was not destroyed in this
way.

This change will keep the peer's drag state object alive, even when an
XdndLeave message is received. The entry will still be removed when the
peer's window is destroyed.
2021-04-14 12:36:48 +01:00
..
application Updated all license headers 2020-06-29 08:30:22 +01:00
buttons Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
commands XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
components Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
desktop Displays: Added floating-point physical<->logical coordinate conversion methods 2021-02-19 19:07:12 +00:00
drawables CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
filebrowser Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
keyboard Updated all license headers 2020-06-29 08:30:22 +01:00
layout Update SidePanel visibility when shown/hidden and set always on top 2021-01-29 15:40:12 +00:00
lookandfeel Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
menus PopupMenu: Add option to specify initially-selected menu item 2021-03-10 16:14:42 +00:00
misc juce6: Update some referenes to JUCE 5 in docstrings 2020-07-01 10:00:43 +01:00
mouse Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
native X11: Fix drag-n-drop bug in the XWindowSystem class 2021-04-14 12:36:48 +01:00
positioning CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
properties XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
widgets TextEditor: Fixed a bug updating the text holder size for single-line editors 2021-04-07 14:12:11 +01:00
windows Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics.cpp Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics.h Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics.mm Updated all license headers 2020-06-29 08:30:22 +01:00