mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user