mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-90515 Editor tab dragged by dragging Configuration Menu pop-out items
This commit is contained in:
@@ -93,7 +93,7 @@ class DragHelper extends MouseDragHelper {
|
||||
}
|
||||
|
||||
protected void processDrag(MouseEvent event, Point targetScreenPoint, Point startPointScreen) {
|
||||
if (!myTabs.isTabDraggingEnabled()) return;
|
||||
if (!myTabs.isTabDraggingEnabled() || !isDragSource(event)) return;
|
||||
|
||||
SwingUtilities.convertPointFromScreen(startPointScreen, myTabs);
|
||||
|
||||
@@ -165,6 +165,14 @@ class DragHelper extends MouseDragHelper {
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isDragSource(MouseEvent event) {
|
||||
final Object source = event.getSource();
|
||||
if (source instanceof Component) {
|
||||
return SwingUtilities.windowForComponent(myTabs) == SwingUtilities.windowForComponent((Component)source);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private TabLabel findMostOverlapping(Axis measurer, TabLabel... labels) {
|
||||
double freeSpace;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user