fix for d'n'd on linux:

DropTargetListener#dragOver method may be called before DragSourceListener#dragOver so first d'n'd will be rejected
This commit is contained in:
nik
2010-04-13 16:35:36 +04:00
parent 20cd597945
commit 7ae2a21d90
@@ -670,7 +670,7 @@ public class DnDManagerImpl extends DnDManager implements DnDEvent.DropTargetHig
public void dragOver(DropTargetDragEvent dtde) {
final DnDEventImpl event = updateCurrentEvent(dtde.getDropTargetContext().getComponent(), dtde.getLocation(), dtde.getDropAction(),
dtde.getCurrentDataFlavors(), dtde.getTransferable());
if (myCurrentDragContext == null || myCurrentEvent == null) {
if (myCurrentEvent == null) {
if (event != null && event.isDropPossible()) {
dtde.acceptDrag(event.getAction().getActionId());
}